Skip to content

Commit

Permalink
code: simplify if check
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Nov 17, 2022
1 parent 8130566 commit 106ef51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detox/src/realms/DetoxPrimaryContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class DetoxPrimaryContext extends DetoxContext {
process.env.DETOX_CONFIG_SNAPSHOT_PATH = this[_sessionFile];
this[_lifecycleLogger].trace(`Serialized the session state at: ${this[_sessionFile]}`);

if (opts.workerId !== null && opts.workerId !== undefined) {
if (opts.workerId != null) {
await this[symbols.installWorker](opts);
}
}
Expand Down

0 comments on commit 106ef51

Please sign in to comment.