diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-02-19 13:45:30 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-02-21 12:53:19 +0100 |
commit | 193468667b84b416cd5c5a9f42bc34deedae858e (patch) | |
tree | 73fd5e7e8a82f3f0cc010d5e228a0418a589dde9 /lib/readline.js | |
parent | a4c3e31ac7c1d3092c7cd7fa306ce3f3382dc5fc (diff) | |
download | android-node-v8-193468667b84b416cd5c5a9f42bc34deedae858e.tar.gz android-node-v8-193468667b84b416cd5c5a9f42bc34deedae858e.tar.bz2 android-node-v8-193468667b84b416cd5c5a9f42bc34deedae858e.zip |
tools: enable one-var-declaration-per-line ESLint rule
This rule enforces new lines around variable declarations. It is
configured to spot only variables that are initialized.
PR-URL: https://github.com/nodejs/node/pull/11462
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'lib/readline.js')
-rw-r--r-- | lib/readline.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/readline.js b/lib/readline.js index f1b9db46af..a571657a72 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -427,9 +427,9 @@ Interface.prototype._tabComplete = function(lastKeypressWasTab) { if (!maxColumns || maxColumns === Infinity) { maxColumns = 1; } - var group = [], c; + var group = []; for (var i = 0, compLen = completions.length; i < compLen; i++) { - c = completions[i]; + var c = completions[i]; if (c === '') { handleGroup(self, group, width, maxColumns); group = []; |