File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ type ipValue struct {
11
11
12
12
func (v * ipValue ) Set (value string ) error {
13
13
val := net .ParseIP (value )
14
- if val ! = nil {
14
+ if val = = nil {
15
15
return fmt .Errorf ("invalid ip: " + value )
16
16
}
17
17
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ type ipMaskValue struct {
11
11
12
12
func (v * ipMaskValue ) Set (value string ) error {
13
13
val := parseIPv4Mask (value )
14
- if val ! = nil {
14
+ if val = = nil {
15
15
return fmt .Errorf ("invalid ip mask: " + value )
16
16
}
17
17
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ type ipSliceValue struct {
12
12
13
13
func (v * ipSliceValue ) Set (value string ) error {
14
14
val := net .ParseIP (value )
15
- if val ! = nil {
15
+ if val = = nil {
16
16
return fmt .Errorf ("invalid ip: " + value )
17
17
}
18
18
You can’t perform that action at this time.
0 commit comments