Skip to content

Commit

Permalink
fixup: style
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <mvasek@redhat.com>
  • Loading branch information
matejvasek committed Oct 5, 2022
1 parent 19edfc6 commit b76f286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/persistent_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func runWithVolumeMounted(ctx context.Context, podImage string, podCommand []str
defer cancel()
ready := podReady(localCtx, client.CoreV1(), podName, namespace)

pod, err = pods.Create(ctx, pod, metav1.CreateOptions{})
_, err = pods.Create(ctx, pod, metav1.CreateOptions{})
if err != nil {
return fmt.Errorf("cannot create pod: %w", err)
}
Expand Down

1 comment on commit b76f286

@ShlokMohanty
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matjvasek here we are not modifying the pod variable due to variable overriding ?

Please sign in to comment.