Correct golint warning (#2915)

This commit is contained in:
Gábor Lipták 2019-12-04 18:35:56 -05:00 committed by Matt Holt
parent 5ec503386c
commit 7fa90f08ae

View file

@ -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