From e32c453bc3a1f40fa83686b0c35b0e5bd1aa0a2c Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 22 Nov 2017 16:50:33 -0600 Subject: Remove unused asyncs --- packages/0x.js/test/utils/report_callback_errors.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/0x.js/test/utils') 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) => { + return (f: (...args: any[]) => void) => { const wrapped = async (...args: any[]) => { try { - await fAsync(...args); + f(...args); } catch (err) { done(err); } -- cgit v1.2.3