Skip to content

Commit 0d57f94

Browse files
authored
Fix error message to comply with staticcheck (#6421)
1 parent 8ffe098 commit 0d57f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apis/dos/validation/dos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func ValidateAppProtectDosAllowList(allowList []v1beta1.AllowListEntry) error {
203203
for _, entry := range allowList {
204204
ipValid := isValidIPWithMask(entry.IPWithMask)
205205
if !ipValid {
206-
return fmt.Errorf("Invalid IP with subnet mask: %s", entry.IPWithMask)
206+
return fmt.Errorf("invalid IP with subnet mask: %s", entry.IPWithMask)
207207
}
208208
}
209209
return nil

0 commit comments

Comments
 (0)