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 /lib/promises.js | |
| parent | 973bc5820a702ebedbaeb4ceecfea64f148dbafb (diff) | |
Remove promises.nfcall()
Diffstat (limited to 'lib/promises.js')
| -rw-r--r-- | lib/promises.js | 6 |
1 files changed, 0 insertions, 6 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)); |
