Skip to content

Commit

Permalink
Invert and simplify "if we found a match" logic
Browse files Browse the repository at this point in the history
undefined !== null which caused a false positive and fell through to an error.
  • Loading branch information
rwstauner committed Jan 29, 2015
1 parent 8663e72 commit fad7683
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions root/static/js/github.js
Expand Up @@ -212,10 +212,10 @@
return false;
}
});
if (this.type === null) {
return false;
if (this.type) {
return true;
}
return true;
return false;
},

prepareData: function(data, cb) {
Expand Down

0 comments on commit fad7683

Please sign in to comment.