Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagonal committed Nov 7, 2018
1 parent 379a322 commit 55c7540
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = function(viewConfig) {

result = await pprops(data);
if (viewConfig.preResponse) {
// if preresponse returns a value, use that as the response value:
const response = viewConfig.preResponse(request, viewConfig.options, result, h);
if (response) {
return response;
Expand Down

0 comments on commit 55c7540

Please sign in to comment.