Skip to content

Commit cb2bb64

Browse files
committed
y
1 parent cdc0512 commit cb2bb64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/webhook/apps/v1alpha1/nimcache_webhook_validation_helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ func validateModel(model *appsv1alpha1.ModelSpec, fldPath *field.Path) field.Err
7575
errList := field.ErrorList{}
7676

7777
if model == nil {
78-
return errList
79-
}
78+
return errList
79+
}
8080

8181
// If Model.Profiles is not empty, ensure all other Model fields are empty. If Model.Profiles contains "all", length must be 1
8282
if len(model.Profiles) > 0 {

0 commit comments

Comments
 (0)