Skip to content

Commit 608024c

Browse files
committed
chore(lint): address QF1008 staticcheck rule
1 parent d9d9379 commit 608024c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

controllers/secret_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (r *SecretReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
136136

137137
finalizerName := cloudapi.SecretFinalizer
138138
// Handle deletion
139-
if !secretCR.ObjectMeta.DeletionTimestamp.IsZero() {
139+
if !secretCR.DeletionTimestamp.IsZero() {
140140
if controllerutil.ContainsFinalizer(secretCR, finalizerName) {
141141
if err := secretClient.DeleteSecret(ctx, secretCR); err != nil {
142142
// If the remote secret is already gone, that's okay.

controllers/serviceaccountbinding_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ func (r *ServiceAccountBindingReconciler) Reconcile(ctx context.Context, req ctr
237237
}
238238
} else {
239239
// Remote binding exists.
240-
logger.Info("Remote ServiceAccountBinding already exists", "bindingName", remoteName, "poolMemberRef", poolMemberRef, "existingRemoteName", existingRemoteBinding.ObjectMeta.Name)
240+
logger.Info("Remote ServiceAccountBinding already exists", "bindingName", remoteName, "poolMemberRef", poolMemberRef, "existingRemoteName", existingRemoteBinding.Name)
241241
// TODO: Implement update logic if necessary.
242242
// Compare existingRemoteBinding.Spec with what payloadForClient would generate via conversion.
243243
// For now, we assume if it exists, it's correctly configured or updates are not handled here.

0 commit comments

Comments
 (0)