Skip to content

Commit

Permalink
semicolon fix (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisx authored and ForbesLindesay committed Jun 8, 2016
1 parent 1c5fcf2 commit 453f845
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/core.js
Expand Up @@ -84,7 +84,7 @@ function safeThen(self, onFulfilled, onRejected) {
res.then(resolve, reject);
handle(self, new Handler(onFulfilled, onRejected, res));
});
};
}
function handle(self, deferred) {
while (self._state === 3) {
self = self._value;
Expand Down Expand Up @@ -205,7 +205,7 @@ function doResolve(fn, promise) {
if (done) return;
done = true;
reject(promise, reason);
})
});
if (!done && res === IS_ERROR) {
done = true;
reject(promise, LAST_ERROR);
Expand Down
6 changes: 3 additions & 3 deletions src/node-extensions.js
Expand Up @@ -18,7 +18,7 @@ Promise.denodeify = function (fn, argumentCount) {
} else {
return denodeifyWithoutCount(fn);
}
}
};

var callbackFn = (
'function (err, res) {' +
Expand Down Expand Up @@ -113,7 +113,7 @@ Promise.nodeify = function (fn) {
}
}
}
}
};

Promise.prototype.nodeify = function (callback, ctx) {
if (typeof callback != 'function') return this;
Expand All @@ -127,4 +127,4 @@ Promise.prototype.nodeify = function (callback, ctx) {
callback.call(ctx, err);
});
});
}
};

0 comments on commit 453f845

Please sign in to comment.