diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-09-16 23:41:44 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-09-16 23:41:44 +0100 |
| commit | f43ee8dfbe2b028197e4d7706624871e791ebb1b (patch) | |
| tree | 010dc45b8dec23bb3dd1c3160abefdeff81764fe | |
| parent | 973bc5820a702ebedbaeb4ceecfea64f148dbafb (diff) | |
Remove promises.nfcall()
| -rw-r--r-- | lib/promises.js | 6 | ||||
| -rw-r--r-- | test/main.tests.js | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/lib/promises.js b/lib/promises.js index 6ceee1c..e05cf11 100644 --- a/lib/promises.js +++ b/lib/promises.js @@ -43,12 +43,6 @@ exports.try = function(func) { } }; -exports.nfcall = function(func) { - var args = Array.prototype.slice.call(arguments, 1); - var promisedFunc = bluebird.promisify(func); - return promisedFunc.apply(null, args); -}; - bluebird.prototype.also = function(func) { return this.then(function(value) { var returnValue = _.extend({}, value, func(value)); diff --git a/test/main.tests.js b/test/main.tests.js index 06824f0..f1bc363 100644 --- a/test/main.tests.js +++ b/test/main.tests.js @@ -99,5 +99,5 @@ function tryRunMammoth(args) { } function createTempDir() { - return promises.nfcall(temp.mkdir, null); + return temp.mkdir(); } |
