Skip to content

Commit

Permalink
Correct golint warning (caddyserver#2915)
Browse files Browse the repository at this point in the history
  • Loading branch information
gliptak authored and mholt committed Dec 4, 2019
1 parent 5ec5033 commit 7fa90f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions caddyhttp/httpserver/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fa90f0

Please sign in to comment.