Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cheenamalhotra committed Jul 11, 2023
1 parent d588b7c commit 48c1e9d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/models/connectionCredentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,16 @@ export class ConnectionCredentials implements IConnectionInfo {
}
}
},
default: async defaultProfileValues => {
if (defaultProfileValues.connectionString) {
if ((defaultProfileValues as IConnectionProfile).savePassword) {
default: async (value) => {
if (value.connectionString) {
if ((value as IConnectionProfile).savePassword) {
// look up connection string
let connectionString = await connectionStore.lookupPassword(defaultProfileValues, true);
defaultProfileValues.connectionString = connectionString;
let connectionString = await connectionStore.lookupPassword(value, true);
value.connectionString = connectionString;
}
} else return await connectionStore.lookupPassword(defaultProfileValues);
} else {
return await connectionStore.lookupPassword(value);
}
}
}
];
Expand Down

0 comments on commit 48c1e9d

Please sign in to comment.