Skip to content
Myr

Delete unused arg (#2834)

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

authored by Alexander Melentyev · committed by GitHub · parent f3a6b69 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:binding/form_mapping.go+2 added-2 removed
208 unmodified lines
209 return setIntField(val, 32, value)210 case reflect.Int64:211 switch value.Interface().(type) {212 case time.Duration:213 return setTimeDuration(val, value, field)213 return setTimeDuration(val, value)214 }215 return setIntField(val, 64, value)216 case reflect.Uint:217 return setUintField(val, 0, value)
140 unmodified lines
358 value.Set(slice)359 return nil360}361362func setTimeDuration(val string, value reflect.Value, field reflect.StructField) error {362func setTimeDuration(val string, value reflect.Value) error {363 d, err := time.ParseDuration(val)364 if err != nil {365 return err366 }
37 unmodified lines