Skip to content

Commit

Permalink
outdent else
Browse files Browse the repository at this point in the history
  • Loading branch information
jooseppi-luna authored Feb 21, 2024
1 parent 36afc3a commit d9a7bc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/resources/serviceaccount/serviceaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ func SyncServiceAccount(ctx context.Context, sa corev1.ServiceAccount, client cl
} else if err != nil {
log.Errorw("Unknown error.", "Error", err.Error())
return err
} else {
// Updating the service account keeps regenerating the secrets.
// We dont have to update the service account if it exists.
log.Infow("ServiceAccount already exists", "Name:", sa.Name)
}

Check failure on line 43 in pkg/resources/serviceaccount/serviceaccount.go

View workflow job for this annotation

GitHub Actions / golangci-lint

File is not `gofumpt`-ed (gofumpt)
// Updating the service account keeps regenerating the secrets.
// We dont have to update the service account if it exists.
log.Infow("ServiceAccount already exists", "Name:", sa.Name)
return nil
}

0 comments on commit d9a7bc1

Please sign in to comment.