Skip to content

Commit

Permalink
Remove 'new' keyword before Promise.race()
Browse files Browse the repository at this point in the history
Summary:
I'm not sure if this was actually breaking anything, but I don't think `new` before `Promise.race()` is conventional.
Closes #9817

Differential Revision: D3836814

Pulled By: javache

fbshipit-source-id: 3bde46dca3760c3f7f3427f6346dd5f16f8ac011
  • Loading branch information
aleclarson authored and Facebook Github Bot 7 committed Sep 9, 2016
1 parent b6735f3 commit 8cfa734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packager/react-packager/src/AssetServer/index.js
Expand Up @@ -21,7 +21,7 @@ const createTimeoutPromise = (timeout) => new Promise((resolve, reject) => {
});
function timeoutableDenodeify(fsFunc, timeout) {
return function raceWrapper(...args) {
return new Promise.race([
return Promise.race([
createTimeoutPromise(timeout),
Promise.denodeify(fsFunc).apply(this, args)
]);
Expand Down

0 comments on commit 8cfa734

Please sign in to comment.