Skip to content

Commit

Permalink
Merge pull request #83790 from aaomidi/patch-2
Browse files Browse the repository at this point in the history
Use isNaN instead of === NaN
  • Loading branch information
octref committed Nov 1, 2019
2 parents 90e887f + bf8410f commit 7094ff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/azure-pipelines/publish-types/check-version.ts
Expand Up @@ -35,9 +35,9 @@ function isValidTag(t: string) {
return false;
}

if (parseInt(major, 10) === NaN || parseInt(minor, 10) === NaN) {
if (isNaN(parseInt(major, 10)) || isNaN(parseInt(minor, 10))) {
return false;
}

return true;
}
}

0 comments on commit 7094ff3

Please sign in to comment.