Skip to content

Commit 0267d01

Browse files
committed
chore: cleanup windows NPM
1 parent c7a1ae2 commit 0267d01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

npm/pkg/dataplane/ipsets/ipsetmanager_windows.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,15 +464,15 @@ func getPolicyNetworkRequestMarshal(setPolicySettings map[string]*hcn.SetPolicyS
464464

465465
func isValidIPSet(set *IPSet) error {
466466
if set.Name == "" {
467-
return fmt.Errorf("IPSet " + set.Name + " is missing Name")
467+
return fmt.Errorf("IPSet %s is missing Name", set.Name)
468468
}
469469

470470
if set.Type == UnknownType {
471-
return fmt.Errorf("IPSet " + set.Type.String() + " is missing Type")
471+
return fmt.Errorf("IPSet %s is missing Type", set.Type.String())
472472
}
473473

474474
if set.HashedName == "" {
475-
return fmt.Errorf("IPSet " + set.HashedName + " is missing HashedName")
475+
return fmt.Errorf("IPSet %s is missing HashedName", set.HashedName)
476476
}
477477

478478
return nil

0 commit comments

Comments
 (0)