Skip to content

Commit

Permalink
fix: check for release prior to using it
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codes committed Nov 21, 2024
1 parent 2b54782 commit 6126197
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ const create =

const { state, release } = JSON.parse(payload.toString())

if (release === null) {
debug('Release is null; aborting')
return
}

const newState = runStates.find((s) => s === state.toLowerCase())

if (!newState || !release.id) {
Expand Down

0 comments on commit 6126197

Please sign in to comment.