Skip to content
Myr

refactor: optimize error message concatenation in default_validator (#4685)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by wanghaolong613 · committed by GitHub · parent 5f4f964 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:binding/default_validator.go+4 added-1 removed
30 unmodified lines
31 if err[i] != nil {32 if b.Len() > 0 {33 b.WriteString("\n")34 }35 b.WriteString("[" + strconv.Itoa(i) + "]: " + err[i].Error())35 b.WriteString("[")36 b.WriteString(strconv.Itoa(i))37 b.WriteString("]: ")38 b.WriteString(err[i].Error())39 }40 }41 return b.String()42}
56 unmodified lines