Skip to content

Commit

Permalink
rm arrow method inside onResultFromComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Nov 26, 2023
1 parent 4f3d4c5 commit 976c02e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/handlers/controller_result_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export class ControllerResultHandler extends FileHandler {

onResultFromComponent(result: IHttpResult) {
this.controllerResult = result || textResult("");
return () => {
return this.handleFinalResult_();
}
// return () => {
return this.handleFinalResult_;
// }
}
}
5 changes: 2 additions & 3 deletions src/handlers/request_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,8 @@ export class RequestHandler extends ControllerResultHandler {
this.onRouteMatched_()
);
await this.runWallOutgoing_();
// if (finalCallback) {
await finalCallback();
// }
// using call to pass context, as methods are being returned mostly
await finalCallback.call(this);
}
catch (ex) {
this.onErrorOccured(ex);
Expand Down

0 comments on commit 976c02e

Please sign in to comment.