Skip to content

Commit

Permalink
Style: Trying to fix unhandeld promise
Browse files Browse the repository at this point in the history
Trying to resolve this : 9118a7c
  • Loading branch information
jy95 committed Sep 6, 2017
1 parent 9118a7c commit 2f7a487
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/TorrentLibrary.js
Expand Up @@ -287,7 +287,7 @@ class TorrentLibrary extends EventEmitter {
}

const that = this;
return new PromiseLib(((resolve, reject) => {
return new PromiseLib(((resolve) => {
PromiseLib.map(paths, path => promisifiedAccess(path)).then(() => {
// keep only unique paths
// use normalize for cross platform's code
Expand All @@ -298,7 +298,6 @@ class TorrentLibrary extends EventEmitter {
functionName: 'addNewPath',
error: e,
});
reject(e);
});
}));
}
Expand Down

0 comments on commit 2f7a487

Please sign in to comment.