1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 22:33:35 +00:00

Ps 1061 cli update command returns wrong version (#4071)

* PS-1061 - replace out of date url references

* PS-1061 - reverse position of error case handling to reduce nesting

* PS-1061 - remove unnecessary constructor parameters, move downloadUrl construction to separate function

* PS-1061 - move constants outside of class, readability improvements

* PS-1061 - use standard notation for property assignment

* PS-1061 - initialize downloadUrl with default value
This commit is contained in:
dgoodman-bw
2022-11-30 15:47:19 -07:00
committed by GitHub
parent 81c98778e9
commit 6e1aef543d
2 changed files with 92 additions and 93 deletions

View File

@@ -403,13 +403,7 @@ export class Program {
writeLn("", true);
})
.action(async () => {
const command = new UpdateCommand(
this.main.platformUtilsService,
this.main.i18nService,
"cli",
"bw",
true
);
const command = new UpdateCommand(this.main.platformUtilsService);
const response = await command.run();
this.processResponse(response);
});