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,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