mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 11:43:02 -06:00
[chore]: Bump github.com/go-playground/form/v4 from 4.2.0 to 4.2.1 (#1994)
This commit is contained in:
parent
8ac3a3f688
commit
d53449ccb4
7 changed files with 47 additions and 66 deletions
6
vendor/github.com/go-playground/form/v4/decoder.go
generated
vendored
6
vendor/github.com/go-playground/form/v4/decoder.go
generated
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue