Skip to content

Commit

Permalink
fixed: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
binjospookie committed Dec 29, 2023
1 parent ff881ae commit 10a1247
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const readJSON = async filePath => JSON.parse(await readFile(filePath))
const printError = text =>
process.stdout.write(`\n${bold(bgRed(' Failed '))} ${text}\n\n`)

const printSet = set =>
process.stdout.write(`${JSON.stringify([...set], undefined, 2)} \n\n`)

const createStatusAPI = ({ title }) => {
const spinner = createSpinner(title)

Expand All @@ -21,8 +24,7 @@ const createStatusAPI = ({ title }) => {
spinner.success()

if (set) {
const list = [...set]
process.stdout.write(`${JSON.stringify(list, undefined, 2)} \n\n`)
printSet(set)
}

process.exit(0)
Expand All @@ -33,8 +35,7 @@ const createStatusAPI = ({ title }) => {
printError(msg)

if (set) {
const list = [...set]
process.stdout.write(`${JSON.stringify(list, undefined, 2)} \n\n`)
printSet(set)
}

process.exit(1)
Expand Down

0 comments on commit 10a1247

Please sign in to comment.