We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e47d0ab commit fb76283Copy full SHA for fb76283
decoder.go
@@ -116,11 +116,7 @@ func (d *decoder) parseMapData() {
116
// no need to check for error, it will always pass
117
// as we have done the checking to ensure
118
// the value is a number ahead of time.
119
- var err error
120
- ke.ivalue, err = strconv.Atoi(ke.value)
121
- if err != nil {
122
- ke.ivalue = -1
123
- }
+ ke.ivalue, _ = strconv.Atoi(ke.value)
124
125
if ke.ivalue > rd.sliceLen {
126
rd.sliceLen = ke.ivalue
0 commit comments