Skip to content

Commit bc4faeb

Browse files
committed
fix style
1 parent 741ac42 commit bc4faeb

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/gcp_auth.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,16 @@ export class GoogleCloudPlatformAuth implements Authenticator {
6262
}
6363

6464
private updateAccessToken(config: Config): void {
65-
let cmd = config['cmd-path'];
65+
const cmd = config['cmd-path'];
6666
if (!cmd) {
6767
throw new Error('Token is expired!');
6868
}
69-
const args = (config['cmd-args'] ? config['cmd-args'].split(' ') : []).map(
70-
(arg: string): string => {
71-
if (arg[0] == '\'' || arg[0] == '"') {
72-
return arg.substring(1, arg.length-1);
73-
}
74-
return arg;
69+
const args = (config['cmd-args'] ? config['cmd-args'].split(' ') : []).map((arg: string): string => {
70+
if (arg[0] === "'" || arg[0] === '"') {
71+
return arg.substring(1, arg.length - 1);
7572
}
76-
);
73+
return arg;
74+
});
7775
// TODO: Cache to file?
7876
// TODO: do this asynchronously
7977
let output: any;

0 commit comments

Comments
 (0)