Skip to content

Commit

Permalink
Fix golangci-lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan West <jonwest@redhat.com>
  • Loading branch information
jgwest committed Sep 16, 2024
1 parent 1dc6af0 commit b3a99a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func validateRolloutsScope(cr rolloutsmanagerv1alpha1.RolloutManager, namespaceS
return &reconcileStatusResult{
rolloutController: &phaseFailure,
phase: &phaseFailure,
}, fmt.Errorf(UnsupportedRolloutManagerClusterScoped)
}, errors.New(UnsupportedRolloutManagerClusterScoped)

}

Expand All @@ -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
Expand Down Expand Up @@ -273,7 +273,7 @@ func checkForExistingRolloutManager(ctx context.Context, k8sClient client.Client
return &reconcileStatusResult{
rolloutController: &phaseFailure,
phase: &phaseFailure,
}, fmt.Errorf(UnsupportedRolloutManagerConfiguration)
}, errors.New(UnsupportedRolloutManagerConfiguration)

}
}
Expand Down

0 comments on commit b3a99a6

Please sign in to comment.