Skip to content

Commit

Permalink
Added else.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Fernández committed Jan 25, 2016
1 parent 1006573 commit a93098f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function createHooks(reponame, url, secret, token, callback) {
badStatusErr.statusCode = res.statusCode;
return callback(badStatusErr);
}
if (res.statusCode !== 201) {
else if (res.statusCode !== 201) {
badStatusErr = new Error('Bad status code: ' + res.statusCode);
badStatusErr.statusCode = res.statusCode;
return callback(badStatusErr);
Expand Down

0 comments on commit a93098f

Please sign in to comment.