Skip to content

Commit 69617d2

Browse files
committed
.commit handles errors properly now
1 parent f08a10f commit 69617d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@
419419
};
420420

421421
_request("POST", repoPath + "/git/commits", data, function(err, res) {
422-
currentTree.sha = res.sha; // update latest commit
423422
if (err) return cb(err);
423+
currentTree.sha = res.sha; // update latest commit
424424
cb(null, res.sha);
425425
});
426426
};

0 commit comments

Comments
 (0)