eth/filters: fix missing if check from code review

This commit is contained in:
Domino Valdano 2018-04-14 13:01:14 -07:00
parent 224f2d81e3
commit 066c9f368e
No known key found for this signature in database
GPG key ID: 3FDFE30EE92AC05E

View file

@ -530,9 +530,11 @@ func returnRetData(rdata []types.ReturnData) []types.ReturnData {
return []types.ReturnData{}
} else {
for _, r := range rdata {
if r.Data == nil {
r.Data = []byte{}
}
}
}
return rdata
}