Permalink
Browse files

No issue: removed what seems to be useless and incorrect block of code

  • Loading branch information...
1 parent 76a969e commit 84aeeb9260b2252c78b7a4d51916de8e41aaa499 @valueof valueof committed Jan 27, 2014
Showing with 1 addition and 9 deletions.
  1. +1 −9 src/jshint.js
View
@@ -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");
}

0 comments on commit 84aeeb9

Please sign in to comment.