controllers/webhooks/validation/duplicate_validator.go
Method DuplicateValidator.ValidateUpdate
has 52 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (v DuplicateValidator) ValidateUpdate(ctx context.Context, logger logr.Logger, namespace string, oldObj, obj webhooks.UniqueClientObject) error {
if oldObj.UniqueName() == obj.UniqueName() {
return nil
}