diff --git a/src/apm-cli.js b/src/apm-cli.js index 14860a0e..165276cb 100644 --- a/src/apm-cli.js +++ b/src/apm-cli.js @@ -121,9 +121,9 @@ async function printVersions(args) { const npmVersion = require("npm/package.json").version ?? ""; const nodeVersion = process.versions.node ?? ""; - const pythonVersion = await getPythonVersion(); - const gitVersion = await git.getGitVersion(); - const atomVersion = await getAtomVersion(); + let pythonVersion = await getPythonVersion(); + let gitVersion = await git.getGitVersion(); + let atomVersion = await getAtomVersion(); let versions; if (args.json) { versions = { diff --git a/src/git.js b/src/git.js index 4747974f..c938e050 100644 --- a/src/git.js +++ b/src/git.js @@ -66,7 +66,7 @@ exports.getGitVersion = () => { userconfig: config.getUserConfigPath(), globalconfig: config.getGlobalConfigPath() }; - return new Promise((resolve, _reject => { + return new Promise((resolve, _reject) => { npm.load(npmOptions, () => { const git = npm.config.get('git') ?? 'git'; exports.addGitToEnv(process.env); @@ -85,5 +85,5 @@ exports.getGitVersion = () => { resolve(version); }); }); - })); + }); };