Skip to content

Commit

Permalink
No issue: removed what seems to be useless and incorrect block of code
Browse files Browse the repository at this point in the history
  • Loading branch information
valueof committed Jan 27, 2014
1 parent 76a969e commit 84aeeb9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/jshint.js
Expand Up @@ -2807,15 +2807,7 @@ var JSHINT = (function () {
if (Array.isArray(parsed)) {
for (var i in parsed) {
curr = parsed[i];
if (_.contains(["{", "["], curr.id)) {
for (t in curr.left) {
t = tokens[t];
if (t && t.id) {
params.push(t.id);
addlabel(t.id, { type: "unused", token: t.token });
}
}
} else if (curr.value === "...") {
if (curr.value === "...") {
if (!state.option.inESNext()) {
warning("W104", curr, "spread/rest operator");
}
Expand Down

0 comments on commit 84aeeb9

Please sign in to comment.