Skip to content

Commit

Permalink
jshint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yocontra committed Jul 12, 2014
1 parent d5317a0 commit 853a169
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/util/isInt.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function(n) {
n = parseInt(n);
return typeof n === 'number' && n % 1 == 0;
};
var parsed = parseInt(n, 10);
return typeof parsed === 'number' && !isNaN(parsed) && parsed % 1 == 0;
};

0 comments on commit 853a169

Please sign in to comment.