Skip to content

Commit

Permalink
Merge pull request #1546 from aramase/aramase/f/cleanup_err
Browse files Browse the repository at this point in the history
refactor: cleanup unused err check
  • Loading branch information
k8s-ci-robot authored Aug 23, 2024
2 parents 1967382 + 9548c23 commit 15c0654
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/secrets-store-csi-driver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,7 @@ func mainErr() error {
// token request client
kubeClient := kubernetes.NewForConfigOrDie(cfg)
tokenClient := k8s.NewTokenClient(kubeClient, *driverName, 10*time.Minute)
if err != nil {
klog.ErrorS(err, "failed to create token client")
return err
}

if err = tokenClient.Run(ctx.Done()); err != nil {
klog.ErrorS(err, "failed to run token client")
return err
Expand Down

0 comments on commit 15c0654

Please sign in to comment.