Skip to content

Commit

Permalink
Fix for invalid typings
Browse files Browse the repository at this point in the history
  • Loading branch information
worksofliam committed Sep 25, 2023
1 parent 0357502 commit 7e1d381
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ async function fixPrivateKeys(){
const connections = (GlobalConfiguration.get<ConnectionData[]>(`connections`) || []);
let update = false;
for(const connection of connections){
if('privateKey' in connection && connection.privateKey){
connection.privateKeyPath = connection.privateKey as string;
connection.privateKey = undefined;
if('privateKey' in connection && connection[`privateKey`]){
connection.privateKeyPath = connection[`privateKey`] as string;
connection[`privateKey`] = undefined;
update = true;
}
}
Expand Down

0 comments on commit 7e1d381

Please sign in to comment.