Skip to content

Commit

Permalink
Merge pull request #17 from greenkeeperio/feat/log-webhook-error
Browse files Browse the repository at this point in the history
safeguard against	invalid data being returned from the webhook
  • Loading branch information
janl authored Jul 27, 2017
2 parents 08d4476 + ebe7084 commit 7809891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ request({
process.exit(2)
}

if (data.ok) {
if (data && data.ok) {
return console.log('Announced', packageName + '@' + packageVersion, 'to Greenkeeper')
}

Expand Down

0 comments on commit 7809891

Please sign in to comment.