Skip to content

Commit f39bf86

Browse files
author
Carson Howard
committed
removed old callback style code
1 parent 2e32eeb commit f39bf86

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

lib/rebase.js

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -87,24 +87,11 @@ Rebase.open = function(repository, options) {
8787
};
8888

8989
Rebase.prototype.commit =
90-
function(author, committer, encoding, message, callback) {
91-
return _commit.call(this, author, committer, encoding, message)
92-
.then(function(oid) {
93-
if (typeof callback === "function") {
94-
callback(null, oid);
95-
}
96-
97-
return oid;
98-
}, callback);
90+
function(author, committer, encoding, message) {
91+
return _commit.call(this, author, committer, encoding, message);
9992
};
10093

101-
Rebase.prototype.abort =
102-
function(callback) {
103-
return _abort.call(this)
104-
.then(function() {
105-
if (typeof callback === "function") {
106-
callback(null);
107-
}
108-
}, callback);
94+
Rebase.prototype.abort = function() {
95+
return _abort.call(this);
10996
};
11097

0 commit comments

Comments
 (0)