Skip to content

Commit f57fb3d

Browse files
chore: fix nullish coalescing messing up logic
1 parent bea8a36 commit f57fb3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/deploy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ export async function executeDeploy(
142142
}
143143
} else {
144144
let stl: SourceTracking | undefined;
145-
if (!(opts['dry-run'] ?? opts.manifest ?? opts.metadata ?? opts['source-dir'])) {
145+
// nullish coalescing operators don't equate in this scenario
146+
// eslint-disable-next-line
147+
if (!(opts['dry-run'] || opts.manifest || opts.metadata || opts['source-dir'])) {
146148
// if not dry-run, or with source-tracking enabling flags
147149
// instantiate source tracking
148150
// stl will decide, based on the org's properties, what needs to be done

0 commit comments

Comments
 (0)