Skip to content

Commit

Permalink
πŸ‘Œ remove unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-lebeau committed Aug 2, 2024
1 parent 2e3e2ae commit 92738b7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/staging-ci/merge-into-staging.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { printLog, printError, runMain, fetchHandlingError } = require('../lib/execution-utils')
const { printLog, runMain, fetchHandlingError } = require('../lib/execution-utils')
const { command } = require('../lib/command')

const REPOSITORY = process.env.APP
Expand All @@ -20,13 +20,10 @@ runMain(async () => {
)
const jsonResponse = await rawResponse.json()

printLog(jsonResponse)

const isSuccess = jsonResponse.state.feedbacks[0].level === SUCESS_FEEDBACK_LEVEL
const message = jsonResponse.state.feedbacks[0].message

if (!isSuccess) {
printError(message)
throw new Error(message)
}

Expand Down

0 comments on commit 92738b7

Please sign in to comment.