Skip to content

Commit

Permalink
Revert initial fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Oct 25, 2024
1 parent c018ad8 commit 741ac42
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/gcp_auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ export class GoogleCloudPlatformAuth implements Authenticator {
throw new Error('Failed to refresh token: ' + (err as Error).message);
}

// remove leading and trailing `'` from the output
output = output.toString();
output = output.replace(/'/g, '');
output = output.replace(/\'$/, '');
const resultObj = JSON.parse(output);

const tokenPathKeyInConfig = config['token-key'];
Expand Down

0 comments on commit 741ac42

Please sign in to comment.