summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-01-30 15:01:06 -0800
committerJames M Snell <jasnell@gmail.com>2016-02-01 08:41:46 -0800
commitba81d152ec14c2cb190279be8d3a519e220e7872 (patch)
tree2f4e044f959ba51e486f9bf83dacd6a6d67ff763 /lib
parent260512677b65354b12505af9200b106d253e0ced (diff)
downloadandroid-node-v8-ba81d152ec14c2cb190279be8d3a519e220e7872.tar.gz
android-node-v8-ba81d152ec14c2cb190279be8d3a519e220e7872.tar.bz2
android-node-v8-ba81d152ec14c2cb190279be8d3a519e220e7872.zip
repl: remove variable redeclaration
`match` and `filter` are declared twice with `var` in `repl.js`. Declare the variables only once. PR-URL: https://github.com/nodejs/node/pull/4977 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/repl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/repl.js b/lib/repl.js
index f80555dba4..5ba1bfc115 100644
--- a/lib/repl.js
+++ b/lib/repl.js
@@ -655,7 +655,7 @@ REPLServer.prototype.complete = function(line, callback) {
// list of completion lists, one for each inheritance "level"
var completionGroups = [];
- var completeOn, match, filter, i, group, c;
+ var completeOn, i, group, c;
// REPL commands (e.g. ".break").
var match = null;