fix: don't check for false literal. check for falsy return value
This commit is contained in:
parent
80f540ab80
commit
73d29acd76
|
|
@ -70,7 +70,7 @@ export class TestTracing {
|
|||
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;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue