Skip to content

Commit

Permalink
fix(git): Trim whitespace around private key data (#9856)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
DCKcode and viceice committed May 5, 2021
1 parent ae8a60e commit 36af7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/git/private-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let gitPrivateKey: string;
let keyId: string;

export function setPrivateKey(key: string): void {
gitPrivateKey = key;
gitPrivateKey = key?.trim();
}

async function importKey(): Promise<void> {
Expand Down

0 comments on commit 36af7e3

Please sign in to comment.