Skip to content

Commit 7809891

Browse files
authored
Merge pull request #17 from greenkeeperio/feat/log-webhook-error
safeguard against invalid data being returned from the webhook
2 parents 08d4476 + ebe7084 commit 7809891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ request({
5858
process.exit(2)
5959
}
6060

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

0 commit comments

Comments
 (0)