Skip to content

Commit

Permalink
fix up floating promise
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwije committed Oct 30, 2017
1 parent 0853f53 commit 0b60dff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/__benchmarks__/dereference-petstore-swagger.benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ const tests = [
}
defer.resolve();
},
);
).catch((reason) => {
defer.reject(reason);
});
},
},
];
Expand Down
4 changes: 3 additions & 1 deletion src/__benchmarks__/dereference-temando-swagger.benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ const tests = [
}
defer.resolve();
},
);
).catch((reason) => {
defer.reject(reason);
});
},
},
];
Expand Down

0 comments on commit 0b60dff

Please sign in to comment.