Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Mucha committed May 24, 2024
1 parent e47d0ab commit fb76283
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,7 @@ 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.
var err error
ke.ivalue, err = strconv.Atoi(ke.value)
if err != nil {
ke.ivalue = -1
}
ke.ivalue, _ = strconv.Atoi(ke.value)

if ke.ivalue > rd.sliceLen {
rd.sliceLen = ke.ivalue
Expand Down

0 comments on commit fb76283

Please sign in to comment.