Skip to content

Commit fae38b7

Browse files
committed
Fix linting issue
1 parent 0f66b4e commit fae38b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/package-manager.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ export class PackageManager implements INodePackageManager {
3939
}
4040

4141
private _determinePackageManager(): void {
42-
this.$userSettingsService.getSettingValue('packageManager').then ( (pm: string) => {
42+
this.$userSettingsService.getSettingValue('packageManager')
43+
.then((pm: string) => {
4344
if (pm === 'yarn' || this.$options.yarn) {
4445
this.packageManager = this.$yarn;
4546
} else {
4647
this.packageManager = this.$npm;
4748
}
48-
}, (err) => {
49+
})
50+
.catch((err) => {
4951
this.$errors.fail(`Unable to read package manager config from user settings ${err}`);
5052
});
5153
}

0 commit comments

Comments
 (0)