From 86700fe7ef98f2a0ac198f20a409d055533269d5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 15 May 2018 23:48:50 -0400 Subject: [PATCH] shorter logout --- src/program.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/program.ts b/src/program.ts index cf6d72ddc7..2185847947 100644 --- a/src/program.ts +++ b/src/program.ts @@ -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); });