Skip to content

Commit

Permalink
fix: suppress spinner in quiet mode
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 22, 2024
1 parent ee515e8 commit 6c30645
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/goods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ export async function retry<T>(
let callback: () => T
let delayStatic = 0
let delayGen: Generator<number> | undefined
if (typeof a == 'function') {
if (typeof a === 'function') {
callback = a
} else {
if (typeof a == 'object') {
if (typeof a === 'object') {
delayGen = a
} else {
delayStatic = parseDuration(a)
Expand Down Expand Up @@ -199,7 +199,7 @@ export async function spinner<T>(
callback = title
title = ''
}
if (process.env.CI) return callback!()
if ($.quiet || process.env.CI) return callback!()

let i = 0
const spin = () =>
Expand Down

0 comments on commit 6c30645

Please sign in to comment.