Skip to content

Commit

Permalink
Pass radix to parseInt
Browse files Browse the repository at this point in the history
  • Loading branch information
arajkumar authored and eamodio committed Aug 27, 2019
1 parent 53e9cd1 commit 0e64256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Expand Up @@ -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
Expand Down

0 comments on commit 0e64256

Please sign in to comment.