Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhamley committed Aug 9, 2019
1 parent 4c078d9 commit e357368
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/style-spec/validate/validate_number.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default function validateNumber(options) {
const valueSpec = options.valueSpec;
let type = getType(value);

// eslint-disable-next-line no-self-compare
if (type === 'number' && value !== value) {
type = 'NaN';
}
Expand Down

0 comments on commit e357368

Please sign in to comment.