Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 1482170

Browse files
committed
refactor: address comment
1 parent 2289477 commit 1482170

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/agent/debuglet.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,9 @@ export class Debuglet extends EventEmitter {
407407
// This is ignorable.
408408
}
409409

410-
if (utils.satisfies(process.version, '>=10 <10.15.3 || >=11 <11.7')) {
411-
if (this.config.capture && this.config.capture.maxDataSize === 0) {
412-
that.logger.warn(NODE_10_CIRC_REF_MESSAGE);
413-
}
410+
if (this.config.capture && this.config.capture.maxDataSize === 0 &&
411+
utils.satisfies(process.version, '>=10 <10.15.3 || >=11 <11.7')) {
412+
that.logger.warn(NODE_10_CIRC_REF_MESSAGE);
414413
}
415414

416415
// We can register as a debuggee now.

0 commit comments

Comments
 (0)