Skip to content

Commit 5624941

Browse files
committed
Remove double negative in boolean test
1 parent 6b0f13e commit 5624941

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/wrangler/src/cloudchamber/common.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ export async function promiseSpinner<T>(
177177
message: "Loading",
178178
}
179179
): Promise<T> {
180-
const interactive = !json && !isNonInteractiveOrCI();
181-
if (!interactive) {
180+
if (json || isNonInteractiveOrCI()) {
182181
return promise;
183182
}
184183
const { start, stop } = spinner();

0 commit comments

Comments
 (0)