Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Aug 13, 2018
1 parent 2b1f941 commit 855c460
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions ext/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ require("../lib/registered-extensions").promise = function (mode, conf) {
if (!resolvedMode) resolvedMode = "then";

if (resolvedMode === "then") {
var nextTickFailure = function () {
nextTick(onFailure);
};
promise.then(
function (result) { nextTick(onSuccess.bind(this, result)); },
nextTickFailure
);
var nextTickFailure = function () { nextTick(onFailure); };
promise.then(function (result) {
nextTick(onSuccess.bind(this, result));
}, nextTickFailure);
// If `finally` is a function we attach to it to remove cancelled promises.
if (typeof promise.finally === "function") {
promise.finally(nextTickFailure);
Expand Down

0 comments on commit 855c460

Please sign in to comment.