Skip to content

Commit

Permalink
chore: Make golangci-lint happy
Browse files Browse the repository at this point in the history
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
  • Loading branch information
viccuad committed Sep 6, 2023
1 parent d453e52 commit 92f2318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/policies/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (f *Fetcher) getAdmissionPolicies(namespace string) ([]policiesv1.Admission
return policies.Items, nil
}

func newClient() (client.Client, error) { //nolint
func newClient() (client.Client, error) { //nolint:ireturn
config := ctrl.GetConfigOrDie()
customScheme := scheme.Scheme
customScheme.AddKnownTypes(
Expand Down
2 changes: 1 addition & 1 deletion internal/policies/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ var nsKubewarden = v1.Namespace{
},
}

func mockClient(initObjs ...k8sClient.Object) k8sClient.Client { //nolint
func mockClient(initObjs ...k8sClient.Object) k8sClient.Client { //nolint:ireturn
customScheme := scheme.Scheme
customScheme.AddKnownTypes(schema.GroupVersion{Group: constants.KubewardenPoliciesGroup, Version: constants.KubewardenPoliciesVersion}, &policiesv1.ClusterAdmissionPolicy{}, &policiesv1.AdmissionPolicy{}, &policiesv1.ClusterAdmissionPolicyList{}, &policiesv1.AdmissionPolicyList{})
metav1.AddToGroupVersion(customScheme, schema.GroupVersion{Group: constants.KubewardenPoliciesGroup, Version: constants.KubewardenPoliciesVersion})
Expand Down

0 comments on commit 92f2318

Please sign in to comment.