Skip to content

Commit c5860e2

Browse files
committed
Create and return client on same line
1 parent 248df53 commit c5860e2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/cel/clientsettingspolicy_test.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,6 @@ func getKubernetesClient(t *testing.T) (k8sClient client.Client, err error) {
210210
if err = ngfAPIv1alpha1.AddToScheme(scheme); err != nil {
211211
return nil, err
212212
}
213-
214-
// Create client
215-
k8sClient, err = client.New(k8sConfig, client.Options{Scheme: scheme})
216-
217-
return k8sClient, err
213+
// Create a new client with the scheme and return it
214+
return client.New(k8sConfig, client.Options{Scheme: scheme})
218215
}

0 commit comments

Comments
 (0)