Skip to content

Commit

Permalink
path: more small refactorings
Browse files Browse the repository at this point in the history
1) Refactor for loops to while loops that were only meant to count
   up a variable.
2) Refactor some `var` statements to `let` / `const`.
3) Simplify return conditions.
4) Use template strings where possible instead of concat.
5) Use ternary expressions for variable assignments instead of
   if / else.
6) Use the object shorthand notation for the function declarations.
7) Consolidate if else case where possible.
8) Remove double line breaks.

PR-URL: #25278
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
BridgeAR authored and addaleax committed Mar 1, 2019
1 parent b0cde2c commit 6c44e68
Showing 1 changed file with 91 additions and 136 deletions.
Loading

0 comments on commit 6c44e68

Please sign in to comment.