Skip to content

Commit

Permalink
Merge branch 'reimplement-complexity-count'
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Aug 2, 2020
2 parents 1806ddb + 8a205a8 commit e6ad7a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/jshint.js
Expand Up @@ -2426,13 +2426,12 @@ var JSHINT = (function() {
return that;
}, 30);

var orPrecendence = 40;
infix("||", function(context, left, that) {
increaseComplexityCount();
that.left = left;
that.right = expression(context, orPrecendence);
that.right = expression(context, 40);
return that;
}, orPrecendence);
}, 40);

var andPrecedence = 50;
infix("&&", function(context, left, that) {
Expand Down

0 comments on commit e6ad7a2

Please sign in to comment.