Skip to content

Commit d833933

Browse files
authored
fix: fix incorrect nil return value (#1630)
## Description Since we have already checked err before and returned != nil, err must be nil here. In fact, it should return `err2 `. Signed-off-by: huochexizhan <[email protected]>
1 parent 5fa6192 commit d833933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ func (app PocketCoreApp) QueryParam(height int64, paramkey string) (r SinglePara
441441
if err2 != nil {
442442
//ignoring this error as content is a json object
443443
r.Value = val
444-
return r, err
444+
return r, err2
445445
}
446446
r.Value = s
447447
}

0 commit comments

Comments
 (0)