From dff78d82ce21d97cad53171b72b88550e02c2c7f Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Fri, 3 Jan 2020 21:33:22 +0300 Subject: v2: housekeeping: address minor lint complaints (#2957) * v2: housekeeping: update tools * v2: housekeeping: adhere to US locale in spelling * v2: housekeeping: simplify code --- modules/caddyhttp/templates/templates.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/caddyhttp/templates') diff --git a/modules/caddyhttp/templates/templates.go b/modules/caddyhttp/templates/templates.go index adf9844..94764bf 100644 --- a/modules/caddyhttp/templates/templates.go +++ b/modules/caddyhttp/templates/templates.go @@ -259,9 +259,7 @@ func (t *Templates) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddy // refresh, so disable them until we find a better way to do this rec.Header().Del("Etag") - rec.WriteResponse() - - return nil + return rec.WriteResponse() } // executeTemplate executes the template contained in wb.buf and replaces it with the results. -- cgit v1.2.3