Skip to content

Commit fb5af55

Browse files
committed
fix: cleanup leftovers
1 parent 85ab3d6 commit fb5af55

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/interceptor/dump.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,13 @@ class DumpHandler extends DecoratorHandler {
1313
#reason = null
1414
#handler = null
1515

16-
constructor ({ maxSize, timeout }, handler) {
16+
constructor ({ maxSize }, handler) {
1717
super(handler)
1818

1919
if (maxSize != null && (!Number.isFinite(maxSize) || maxSize < 1)) {
2020
throw new InvalidArgumentError('maxSize must be a number greater than 0')
2121
}
2222

23-
if (timeout != null && (!Number.isFinite(timeout) || timeout < 1)) {
24-
throw new InvalidArgumentError('timeout must be a number greater than 0')
25-
}
26-
2723
this.#maxSize = maxSize ?? this.#maxSize
2824
this.#handler = handler
2925
}

0 commit comments

Comments
 (0)