diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-23 06:50:33 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 05:13:38 +0800 |
commit | e32c453bc3a1f40fa83686b0c35b0e5bd1aa0a2c (patch) | |
tree | 8f11e83c7ef8a11b328020f7fed2400b6dd5d8aa /packages/0x.js/test/utils | |
parent | 7b8d9193e2f2c812e94951dfc85db1bda0f27056 (diff) | |
download | dexon-0x-contracts-e32c453bc3a1f40fa83686b0c35b0e5bd1aa0a2c.tar.gz dexon-0x-contracts-e32c453bc3a1f40fa83686b0c35b0e5bd1aa0a2c.tar.zst dexon-0x-contracts-e32c453bc3a1f40fa83686b0c35b0e5bd1aa0a2c.zip |
Remove unused asyncs
Diffstat (limited to 'packages/0x.js/test/utils')
-rw-r--r-- | packages/0x.js/test/utils/report_callback_errors.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/0x.js/test/utils/report_callback_errors.ts b/packages/0x.js/test/utils/report_callback_errors.ts index 4f9517704..8a8f4d966 100644 --- a/packages/0x.js/test/utils/report_callback_errors.ts +++ b/packages/0x.js/test/utils/report_callback_errors.ts @@ -1,10 +1,10 @@ import { DoneCallback } from '../../src/types'; export const reportCallbackErrors = (done: DoneCallback) => { - return (fAsync: (...args: any[]) => void|Promise<void>) => { + return (f: (...args: any[]) => void) => { const wrapped = async (...args: any[]) => { try { - await fAsync(...args); + f(...args); } catch (err) { done(err); } |