Skip to content

Commit a93098f

Browse files
author
Alex Fernández
committed
Added else.
1 parent 1006573 commit a93098f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function createHooks(reponame, url, secret, token, callback) {
5656
badStatusErr.statusCode = res.statusCode;
5757
return callback(badStatusErr);
5858
}
59-
if (res.statusCode !== 201) {
59+
else if (res.statusCode !== 201) {
6060
badStatusErr = new Error('Bad status code: ' + res.statusCode);
6161
badStatusErr.statusCode = res.statusCode;
6262
return callback(badStatusErr);

0 commit comments

Comments
 (0)