Skip to content

Commit

Permalink
refactor: Remove _async_ handling from _sync_ function
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Oct 5, 2021
1 parent 8dd32e5 commit 5f1a916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/handle-error.js
Expand Up @@ -131,7 +131,7 @@ module.exports = async (exception, options = {}) => {

const platform = process.platform;
const nodeVersion = process.version.replace(/^[v|V]/, '');
const installationModePostfix = await (async () => {
const installationModePostfix = (() => {
if (isStandaloneExecutable) return ' (standalone)';
if (isLocallyInstalled != null) return isLocallyInstalled ? ' (local)' : '';
return resolveIsLocallyInstalled() ? ' (local)' : '';
Expand Down

0 comments on commit 5f1a916

Please sign in to comment.