From 2056e48ad87df629584d793c44984022ce617e22 Mon Sep 17 00:00:00 2001 From: Domino Valdano <2644901+reductionista@users.noreply.github.com> Date: Tue, 6 Feb 2024 18:12:40 -0800 Subject: [PATCH] Remove nil check for linter --- core/chains/evm/logpoller/orm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/chains/evm/logpoller/orm.go b/core/chains/evm/logpoller/orm.go index 2026b3a308d..3cab2b90546 100644 --- a/core/chains/evm/logpoller/orm.go +++ b/core/chains/evm/logpoller/orm.go @@ -113,7 +113,7 @@ func (o *DbORM) InsertFilter(filter Filter, qopts ...pg.QOpt) (err error) { // https://github.com/jmoiron/sqlx/issues/91, https://github.com/jmoiron/sqlx/issues/428 var topicsColumns, topicsSql strings.Builder for n, topicValues := range topicArrays { - if topicValues != nil && len(topicValues) != 0 { + if len(topicValues) != 0 { topicCol := fmt.Sprintf("topic%d", n+2) fmt.Fprintf(&topicsColumns, ", %s", topicCol) fmt.Fprintf(&topicsSql, ",\n(SELECT unnest(:%s ::::BYTEA[]) %s) t%d", topicCol, topicCol, n+2)