mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-01-13 07:38:01 -05:00
* fix(cli.ts): add curly braces to if statement in cli function to improve readability
This commit is contained in:
@@ -28,10 +28,11 @@ cli(
|
||||
await commit();
|
||||
const { stdout } = await execa('npm', ['view', 'opencommit', 'version']);
|
||||
|
||||
if (stdout !== packageJSON.version)
|
||||
if (stdout !== packageJSON.version) {
|
||||
outro(
|
||||
'new opencommit version is available, update with `npm i -g opencommit`'
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
rawArgv
|
||||
|
||||
Reference in New Issue
Block a user