mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-11 05:39:03 +00:00
Unreverse ordering
This commit is contained in:
parent
5c6540452a
commit
44a7f997c3
1 changed files with 1 additions and 2 deletions
|
|
@ -111,10 +111,9 @@ func JSONRPC(pipe *xeth.XEth) http.Handler {
|
|||
|
||||
// make response omitting nil entries
|
||||
respBatchComp := make([]*interface{}, resCount)
|
||||
resCount = resCount - 1
|
||||
for _, v := range resBatch {
|
||||
if v != nil {
|
||||
respBatchComp[resCount] = v
|
||||
respBatchComp[len(respBatchComp)-resCount] = v
|
||||
resCount = resCount - 1
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue