mirror of
https://github.com/caddyserver/caddy.git
synced 2025-03-23 05:49:27 +01:00
Correct golint warning (#2915)
This commit is contained in:
parent
5ec503386c
commit
7fa90f08ae
1 changed files with 1 additions and 3 deletions
|
@ -79,10 +79,8 @@ func (l Logger) MaskIP(ip string) string {
|
||||||
|
|
||||||
if reqIP.To4() != nil {
|
if reqIP.To4() != nil {
|
||||||
return reqIP.Mask(l.V4ipMask).String()
|
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
|
// ShouldLog returns true if the path is not exempted from
|
||||||
|
|
Loading…
Reference in a new issue