From 7fa90f08aee0861187236b2fbea16b4fa69c5a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Lipt=C3=A1k?= Date: Wed, 4 Dec 2019 18:35:56 -0500 Subject: [PATCH] Correct golint warning (#2915) --- caddyhttp/httpserver/logger.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/caddyhttp/httpserver/logger.go b/caddyhttp/httpserver/logger.go index 577464adc..0a263d471 100644 --- a/caddyhttp/httpserver/logger.go +++ b/caddyhttp/httpserver/logger.go @@ -79,10 +79,8 @@ func (l Logger) MaskIP(ip string) string { if reqIP.To4() != nil { return reqIP.Mask(l.V4ipMask).String() - } else { - return reqIP.Mask(l.V6ipMask).String() } - + return reqIP.Mask(l.V6ipMask).String() } // ShouldLog returns true if the path is not exempted from