Skip to content

Commit e779fa2

Browse files
Code-Hexgithub-actions[bot]
authored andcommitted
Apply auto lint-fix changes
1 parent 58af8d3 commit e779fa2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/jwk-fetcher.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ interface JWKMetadata {
1212

1313
export const isJWKMetadata = (value: any): value is JWKMetadata => {
1414
if (!isNonNullObject(value) || !value.keys) {
15-
return false
15+
return false;
1616
}
17-
const keys = value.keys
17+
const keys = value.keys;
1818
if (!Array.isArray(keys)) {
19-
return false
19+
return false;
2020
}
21-
const filtered = keys.filter((key): key is JsonWebKeyWithKid =>
22-
isObject(key) && !!key.kid && typeof key.kid === 'string'
23-
)
24-
return keys.length === filtered.length
25-
}
21+
const filtered = keys.filter(
22+
(key): key is JsonWebKeyWithKid => isObject(key) && !!key.kid && typeof key.kid === 'string'
23+
);
24+
return keys.length === filtered.length;
25+
};
2626

2727
/**
2828
* Class to fetch public keys from a client certificates URL.

tests/jwk-fetcher.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ describe('parseMaxAge', () => {
161161

162162
describe('isJWKMetadata', () => {
163163
it('should return true for valid JWKMetadata', () => {
164-
const valid = JSON.parse(validResponseJSON)
164+
const valid = JSON.parse(validResponseJSON);
165165
expect(isJWKMetadata(valid)).toBe(true);
166166
});
167167

0 commit comments

Comments
 (0)