From 0d57f940dbc584f79dc34f68f9054e6af4f40f80 Mon Sep 17 00:00:00 2001 From: Jakub Jarosz <99677300+jjngx@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:59:19 +0100 Subject: [PATCH] Fix error message to comply with staticcheck (#6421) --- pkg/apis/dos/validation/dos.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/dos/validation/dos.go b/pkg/apis/dos/validation/dos.go index 36c5f49bf0..6ab0b8c4d9 100644 --- a/pkg/apis/dos/validation/dos.go +++ b/pkg/apis/dos/validation/dos.go @@ -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