Skip to content

Commit fb76283

Browse files
author
Maciej Mucha
committed
Remove unreachable code
1 parent e47d0ab commit fb76283

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

decoder.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,7 @@ func (d *decoder) parseMapData() {
116116
// no need to check for error, it will always pass
117117
// as we have done the checking to ensure
118118
// 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-
}
119+
ke.ivalue, _ = strconv.Atoi(ke.value)
124120

125121
if ke.ivalue > rd.sliceLen {
126122
rd.sliceLen = ke.ivalue

0 commit comments

Comments
 (0)