From bf8410fc6cd55c5816bf478e5c31c967fc70ebbf Mon Sep 17 00:00:00 2001 From: Amir Omidi Date: Thu, 31 Oct 2019 14:49:10 -0700 Subject: [PATCH] Use isNaN instead of === NaN --- build/azure-pipelines/publish-types/check-version.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/azure-pipelines/publish-types/check-version.ts b/build/azure-pipelines/publish-types/check-version.ts index 2c730889112..137e535353a 100644 --- a/build/azure-pipelines/publish-types/check-version.ts +++ b/build/azure-pipelines/publish-types/check-version.ts @@ -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; -} \ No newline at end of file +} -- GitLab