mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
eth/filters: fix missing if check from code review
This commit is contained in:
parent
224f2d81e3
commit
066c9f368e
1 changed files with 3 additions and 1 deletions
|
|
@ -530,7 +530,9 @@ func returnRetData(rdata []types.ReturnData) []types.ReturnData {
|
||||||
return []types.ReturnData{}
|
return []types.ReturnData{}
|
||||||
} else {
|
} else {
|
||||||
for _, r := range rdata {
|
for _, r := range rdata {
|
||||||
r.Data = []byte{}
|
if r.Data == nil {
|
||||||
|
r.Data = []byte{}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return rdata
|
return rdata
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue