Skip to content

Commit 42168e6

Browse files
authored
Merge pull request #1531 from liranmauda/liran-backport-into-5.18
[Backport into 5.18] fixed lint error
2 parents 709ec73 + 0bc8614 commit 42168e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/system/phase4_configuring.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (r *Reconciler) SetDesiredSecretAdminAccountInfo() error {
229229
if err != nil {
230230
return fmt.Errorf("cannot read admin account info, error: %v", err)
231231
}
232-
if account.AccessKeys == nil || len(account.AccessKeys) <= 0 {
232+
if len(account.AccessKeys) <= 0 {
233233
return fmt.Errorf("admin account has no access keys yet")
234234
}
235235

@@ -417,11 +417,11 @@ func (r *Reconciler) SetDesiredDeploymentEndpoint() error {
417417

418418
if r.NooBaa.Spec.BucketNotifications.Enabled {
419419
envVar := corev1.EnvVar{
420-
Name: "NOTIFICATION_LOG_DIR",
420+
Name: "NOTIFICATION_LOG_DIR",
421421
Value: "/var/logs/notifications",
422422
}
423423

424-
util.MergeEnvArrays(&c.Env, &[]corev1.EnvVar{envVar});
424+
util.MergeEnvArrays(&c.Env, &[]corev1.EnvVar{envVar})
425425
}
426426

427427
c.SecurityContext = &corev1.SecurityContext{

0 commit comments

Comments
 (0)