Skip to content

Commit

Permalink
fix(lint): unused context parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfooI committed Apr 22, 2024
1 parent e67f02c commit c98dc42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resource/utils/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func getSysClient(c client.Client, logger *logr.Logger, obcluster *v1alpha1.OBCl

func GetJob(ctx context.Context, c client.Client, namespace string, jobName string) (*batchv1.Job, error) {
job := &batchv1.Job{}
err := c.Get(context.Background(), types.NamespacedName{
err := c.Get(ctx, types.NamespacedName{
Namespace: namespace,
Name: jobName,
}, job)
Expand Down

0 comments on commit c98dc42

Please sign in to comment.