Remove unused asyncs

This commit is contained in:
Leonid Logvinov 2017-11-22 16:50:33 -06:00
parent 7b8d9193e2
commit e32c453bc3
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -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);
}