[chore]: Bump github.com/go-playground/form/v4 from 4.2.0 to 4.2.1 (#1994)

This commit is contained in:
dependabot[bot]
2023-07-21 14:22:13 +00:00
committed by GitHub
parent 8ac3a3f688
commit d53449ccb4
7 changed files with 47 additions and 66 deletions

View File

@ -109,7 +109,11 @@ func (d *decoder) parseMapData() {
// no need to check for error, it will always pass
// as we have done the checking to ensure
// the value is a number ahead of time.
ke.ivalue, _ = strconv.Atoi(ke.value)
var err error
ke.ivalue, err = strconv.Atoi(ke.value)
if err != nil {
ke.ivalue = -1
}
if ke.ivalue > rd.sliceLen {
rd.sliceLen = ke.ivalue