1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-30 08:10:34 +01:00

shorter logout

This commit is contained in:
Kyle Spearrin 2018-05-15 23:48:50 -04:00
parent 50a019946e
commit 86700fe7ef

View File

@ -61,9 +61,7 @@ export class Program {
.description('Log out of the current Bitwarden user account.')
.action(async (cmd) => {
await this.exitIfNotAuthed();
const command = new LogoutCommand(this.main.authService, async () => {
await this.main.logout();
});
const command = new LogoutCommand(this.main.authService, async () => await this.main.logout());
const response = await command.run(cmd);
this.processResponse(response, cmd);
});