From b3a99a63147081c7ee7fa716e9bcc373ca637b79 Mon Sep 17 00:00:00 2001 From: Jonathan West Date: Fri, 16 Aug 2024 09:30:44 -0400 Subject: [PATCH] Fix golangci-lint error Signed-off-by: Jonathan West --- controllers/utils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/utils.go b/controllers/utils.go index 55de897..7b9a460 100644 --- a/controllers/utils.go +++ b/controllers/utils.go @@ -215,7 +215,7 @@ func validateRolloutsScope(cr rolloutsmanagerv1alpha1.RolloutManager, namespaceS return &reconcileStatusResult{ rolloutController: &phaseFailure, phase: &phaseFailure, - }, fmt.Errorf(UnsupportedRolloutManagerClusterScoped) + }, errors.New(UnsupportedRolloutManagerClusterScoped) } @@ -232,7 +232,7 @@ func validateRolloutsScope(cr rolloutsmanagerv1alpha1.RolloutManager, namespaceS return &reconcileStatusResult{ rolloutController: &phaseFailure, phase: &phaseFailure, - }, fmt.Errorf(UnsupportedRolloutManagerNamespaceScoped) + }, errors.New(UnsupportedRolloutManagerNamespaceScoped) } // allow only cluster-scoped RolloutManager @@ -273,7 +273,7 @@ func checkForExistingRolloutManager(ctx context.Context, k8sClient client.Client return &reconcileStatusResult{ rolloutController: &phaseFailure, phase: &phaseFailure, - }, fmt.Errorf(UnsupportedRolloutManagerConfiguration) + }, errors.New(UnsupportedRolloutManagerConfiguration) } }