From 19b84ff36c4b99b1e3f67fd808d9da1a3df7cd2b Mon Sep 17 00:00:00 2001 From: knarfeh Date: Thu, 14 Jun 2018 17:27:02 +0800 Subject: [PATCH] eth/filters: make filterLogs func more readable (#16920) --- eth/filters/filter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eth/filters/filter.go b/eth/filters/filter.go index 8780a4997d..7a2e3b1ab9 100644 --- a/eth/filters/filter.go +++ b/eth/filters/filter.go @@ -259,9 +259,9 @@ Logs: if len(topics) > len(log.Topics) { continue Logs } - for i, topics := range topics { - match := len(topics) == 0 // empty rule set == wildcard - for _, topic := range topics { + for i, sub := range topics { + match := len(sub) == 0 // empty rule set == wildcard + for _, topic := range sub { if log.Topics[i] == topic { match = true break