Skip to content

Commit 9e4efcf

Browse files
committed
Changed Koa short-circuit to return next(), as requested by @19majkel94
Signed-off-by: Fábio Batista <[email protected]>
1 parent 6d47697 commit 9e4efcf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/driver/koa/KoaDriver.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ export class KoaDriver extends BaseDriver {
215215

216216
// if the action returned the context or the response object itself, short-circuits
217217
if (result && (result === options.response || result === options.context)) {
218-
options.next();
219-
return;
218+
return options.next();
220219
}
221220

222221
// transform result if needed

0 commit comments

Comments
 (0)