Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@PeterDaveHello
Copy link
Collaborator

  • Add { } to variable reference
  • Fix indentation of case and some multi-line commands
  • Put ; do and ; then on the same line as the while, for or if.
  • Remove ; of single line commands

References:

The sh/shfmt tool can't be integrated with CI yet as there are some styles can't be customized and the changes are too many, so just use it as a reference, helper currently, the fixes are still made by myself.

@PeterDaveHello
Copy link
Collaborator Author

@ljharb hope this looks good now :)

@PeterDaveHello
Copy link
Collaborator Author

Updated.

@ljharb ljharb changed the title [Refactor] nvm.sh: Improve coding style [Refactor] nvm.sh: make coding style more consistent Jan 21, 2019
@ljharb ljharb merged commit 10f24d6 into nvm-sh:master Jan 21, 2019
@PeterDaveHello PeterDaveHello deleted the nvm.sh branch January 21, 2019 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants