Skip to content

Commit

Permalink
added review change
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulii committed May 25, 2021
1 parent c865dd1 commit 90b4b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clusterloader2/api/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ func (v *ConfigValidator) Validate() *errors.ErrorList {
}

// validate steps
if len(c.Steps) == 0 {
allErrs = append(allErrs, field.Invalid(field.NewPath("steps"),0,"cannot be empty"))
if len(c.Steps) == 0 {
allErrs = append(allErrs, field.Invalid(field.NewPath("steps"), 0, "cannot be empty"))
}
for i := range c.Steps {
allErrs = append(allErrs, v.validateStep(c.Steps[i], field.NewPath("steps").Index(i))...)
Expand Down

0 comments on commit 90b4b79

Please sign in to comment.