From 55c754018e86e8a90f1828ac75398a857fb5776c Mon Sep 17 00:00:00 2001 From: orthagonal Date: Wed, 7 Nov 2018 21:12:53 +0000 Subject: [PATCH] add comment --- lib/handler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/handler.js b/lib/handler.js index 09732ed..d3f6cdf 100644 --- a/lib/handler.js +++ b/lib/handler.js @@ -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;