mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04:00
Correct golint warning (#2915)
This commit is contained in:
parent
5ec503386c
commit
7fa90f08ae
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user