Skip to content

Commit

Permalink
Fix error message to comply with staticcheck (#6421)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjngx authored Sep 13, 2024
1 parent 8ffe098 commit 0d57f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/dos/validation/dos.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func ValidateAppProtectDosAllowList(allowList []v1beta1.AllowListEntry) error {
for _, entry := range allowList {
ipValid := isValidIPWithMask(entry.IPWithMask)
if !ipValid {
return fmt.Errorf("Invalid IP with subnet mask: %s", entry.IPWithMask)
return fmt.Errorf("invalid IP with subnet mask: %s", entry.IPWithMask)
}
}
return nil
Expand Down

0 comments on commit 0d57f94

Please sign in to comment.