We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 203af8e commit 5ee4198Copy full SHA for 5ee4198
packages/commons/src/LRUCache.ts
@@ -80,8 +80,7 @@ class LRUCache<K, V> {
80
* @param config - The configuration options for the cache
81
*/
82
public constructor(config?: LRUCacheOptions) {
83
- this.maxSize =
84
- config?.maxSize !== undefined ? config.maxSize : DEFAULT_MAX_SIZE;
+ this.maxSize = config?.maxSize ?? DEFAULT_MAX_SIZE;
85
this.map = new Map();
86
}
87
packages/commons/src/types/middy.ts
@@ -60,7 +60,7 @@ type MiddlewareLikeObj<
60
type MiddyLikeRequest = {
61
event: unknown;
62
context: Context;
63
- response: unknown | null;
+ response: unknown;
64
error: Error | null;
65
internal: {
66
[key: string]: unknown;
0 commit comments