Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Oct 25, 2024
1 parent 741ac42 commit ad46117
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/gcp_auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,12 @@ export class GoogleCloudPlatformAuth implements Authenticator {
if (!cmd) {
throw new Error('Token is expired!');
}
const args = (config['cmd-args'] ? config['cmd-args'].split(' ') : []).map(
(arg: string): string => {
if (arg[0] == '\'' || arg[0] == '"') {
return arg.substring(1, arg.length-1);
}
return arg;
const args = (config['cmd-args'] ? config['cmd-args'].split(' ') : []).map((arg: string): string => {
if (arg[0] == "'" || arg[0] == '"') {
return arg.substring(1, arg.length - 1);
}
);
return arg;
});
// TODO: Cache to file?
// TODO: do this asynchronously
let output: any;
Expand Down

0 comments on commit ad46117

Please sign in to comment.