From 0e64256c5641a4c4486fbb90cf31fb0c862eb849 Mon Sep 17 00:00:00 2001 From: Arunprasad Rajkumar Date: Tue, 27 Aug 2019 11:20:40 +0530 Subject: [PATCH] Pass radix to parseInt --- src/extension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension.ts b/src/extension.ts index e9ed488..129cd23 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -177,8 +177,8 @@ async function showWelcomePage(version: string, previousVersion: string | undefi Logger.log(`GitLens upgraded from v${previousVersion} to v${version}`); } - const [major, minor] = version.split('.').map(v => parseInt(v)); - const [prevMajor, prevMinor] = previousVersion.split('.').map(v => parseInt(v)); + const [major, minor] = version.split('.').map(v => parseInt(v, 10)); + const [prevMajor, prevMinor] = previousVersion.split('.').map(v => parseInt(v, 10)); if ( (major === prevMajor && minor === prevMinor) || // Don't notify on downgrades