Bladeren bron

Pass radix to parseInt

main
Arunprasad Rajkumar 5 jaren geleden
committed by Eric Amodio
bovenliggende
commit
0e64256c56
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +2
    -2
      src/extension.ts

+ 2
- 2
src/extension.ts Bestand weergeven

@ -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

Laden…
Annuleren
Opslaan