Skip to content

Commit c634328

Browse files
committed
fix linting
1 parent 1cd2f61 commit c634328

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

packages/amazonq/src/lsp/auth.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,12 @@ export class AmazonQLspAuth {
109109
}
110110

111111
private areCredentialsEqual(creds1: any, creds2: any): boolean {
112-
if (!creds1 && !creds2) return true
113-
if (!creds1 || !creds2) return false
112+
if (!creds1 && !creds2) {
113+
return true
114+
}
115+
if (!creds1 || !creds2) {
116+
return false
117+
}
114118

115119
return (
116120
creds1.accessKeyId === creds2.accessKeyId &&

packages/core/src/test/shared/utilities/functionUtils.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ describe('functionUtils', function () {
5858
it('onceChangedWithComparator()', function () {
5959
let counter = 0
6060
const credentialsEqual = ([prev]: [any], [current]: [any]) => {
61-
if (!prev && !current) return true
62-
if (!prev || !current) return false
61+
if (!prev && !current) {
62+
return true
63+
}
64+
if (!prev || !current) {
65+
return false
66+
}
6367
return prev.accessKeyId === current.accessKeyId && prev.secretAccessKey === current.secretAccessKey
6468
}
6569
const fn = onceChangedWithComparator((creds: any) => void counter++, credentialsEqual)

0 commit comments

Comments
 (0)