Skip to content

Commit 5ee4198

Browse files
authored
refactor(commons): fix code quality issues (#4292)
Co-authored-by: David <[email protected]>
1 parent 203af8e commit 5ee4198

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/commons/src/LRUCache.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ class LRUCache<K, V> {
8080
* @param config - The configuration options for the cache
8181
*/
8282
public constructor(config?: LRUCacheOptions) {
83-
this.maxSize =
84-
config?.maxSize !== undefined ? config.maxSize : DEFAULT_MAX_SIZE;
83+
this.maxSize = config?.maxSize ?? DEFAULT_MAX_SIZE;
8584
this.map = new Map();
8685
}
8786

packages/commons/src/types/middy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type MiddlewareLikeObj<
6060
type MiddyLikeRequest = {
6161
event: unknown;
6262
context: Context;
63-
response: unknown | null;
63+
response: unknown;
6464
error: Error | null;
6565
internal: {
6666
[key: string]: unknown;

0 commit comments

Comments
 (0)