mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-22 16:46:53 +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 {
|
||||
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…
Reference in a new issue