Skip to content

Commit 537ecef

Browse files
authored
fix lint
1 parent 907de0c commit 537ecef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/v1alpha1/storage_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func (r *Storage) ValidateCreate() error {
241241
}
242242
}
243243

244-
if (authEnabled && r.Spec.OperatorConnection == nil) {
244+
if authEnabled && r.Spec.OperatorConnection == nil {
245245
return fmt.Errorf("field 'spec.operatorConnection' does not satisfy with config option `enforce_user_token_requirement: %t`", authEnabled)
246246
}
247247

@@ -355,7 +355,7 @@ func (r *Storage) ValidateUpdate(old runtime.Object) error {
355355
}
356356
}
357357

358-
if (authEnabled && r.Spec.OperatorConnection == nil) {
358+
if authEnabled && r.Spec.OperatorConnection == nil {
359359
return fmt.Errorf("field 'spec.operatorConnection' does not align with config option `enforce_user_token_requirement: %t`", authEnabled)
360360
}
361361

0 commit comments

Comments
 (0)