Skip to content

Commit

Permalink
Delete unused arg (gin-gonic#2834)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashamelentyev authored and daheige committed Apr 18, 2022
1 parent 9469b90 commit fe73ce2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions binding/form_mapping.go
Expand Up @@ -211,7 +211,7 @@ func setWithProperType(val string, value reflect.Value, field reflect.StructFiel
case reflect.Int64:
switch value.Interface().(type) {
case time.Duration:
return setTimeDuration(val, value, field)
return setTimeDuration(val, value)
}
return setIntField(val, 64, value)
case reflect.Uint:
Expand Down Expand Up @@ -360,7 +360,7 @@ func setSlice(vals []string, value reflect.Value, field reflect.StructField) err
return nil
}

func setTimeDuration(val string, value reflect.Value, field reflect.StructField) error {
func setTimeDuration(val string, value reflect.Value) error {
d, err := time.ParseDuration(val)
if err != nil {
return err
Expand Down

0 comments on commit fe73ce2

Please sign in to comment.