Skip to content

Commit d3e4034

Browse files
committed
Lint.
1 parent 1f6dfc6 commit d3e4034

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

readers_test.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,7 @@ func (this *FakeInputModel) Bind(request *http.Request) error {
178178
return this.bindError
179179
}
180180
func (this *FakeInputModel) Validate(errs []error) int {
181-
for i := range this.validationErrors {
182-
errs[i] = this.validationErrors[i]
183-
}
184-
181+
copy(errs, this.validationErrors)
185182
return len(this.validationErrors)
186183
}
187184

0 commit comments

Comments
 (0)