fix: don't check for false literal. check for falsy return value

This commit is contained in:
Stevan Freeborn 2024-02-26 23:07:53 -06:00
parent 80f540ab80
commit 73d29acd76

View file

@ -70,7 +70,7 @@ export class TestTracing {
this._options = { ...defaultTraceOptions, ...value, mode: (mode as string) === 'retry-with-trace' ? 'on-first-retry' : mode }; this._options = { ...defaultTraceOptions, ...value, mode: (mode as string) === 'retry-with-trace' ? 'on-first-retry' : mode };
} }
if (this._shouldCaptureTrace() === false) { if (!this._shouldCaptureTrace()) {
this._options = undefined; this._options = undefined;
return; return;
} }