File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
core/src/auth/credentials Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -109,11 +109,8 @@ export class AmazonQLspAuth {
109109 }
110110
111111 private areCredentialsEqual ( creds1 : any , creds2 : any ) : boolean {
112- if ( ! creds1 && ! creds2 ) {
113- return true
114- }
115112 if ( ! creds1 || ! creds2 ) {
116- return false
113+ return creds1 === creds2
117114 }
118115
119116 return (
Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ export class CredentialsStore {
3838 const expiration = this . credentialsCache [ key ] . credentials . expiration
3939 const now = new globals . clock . Date ( )
4040 const bufferedNow = new globals . clock . Date ( now . getTime ( ) + expirationBufferMs )
41- const isValid = expiration !== undefined ? expiration >= bufferedNow : true
42- return isValid
41+ return expiration !== undefined ? expiration >= bufferedNow : true
4342 }
4443 getLogger ( ) . debug ( `credentials: no credentials found for ${ key } ` )
4544 return false
You can’t perform that action at this time.
0 commit comments