This commit is contained in:
2
vendor/github.com/spf13/pflag/ipnet_slice.go
generated
vendored
2
vendor/github.com/spf13/pflag/ipnet_slice.go
generated
vendored
@ -73,7 +73,7 @@ func (s *ipNetSliceValue) String() string {
|
||||
|
||||
func ipNetSliceConv(val string) (interface{}, error) {
|
||||
val = strings.Trim(val, "[]")
|
||||
// Emtpy string would cause a slice with one (empty) entry
|
||||
// Empty string would cause a slice with one (empty) entry
|
||||
if len(val) == 0 {
|
||||
return []net.IPNet{}, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user