ソースを参照

Pass radix to parseInt

main
Arunprasad Rajkumar 5年前
committed by Eric Amodio
コミット
0e64256c56
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      src/extension.ts

+ 2
- 2
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

読み込み中…
キャンセル
保存