Skip to content

Commit

Permalink
Remove nil check for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista committed Feb 7, 2024
1 parent f188c13 commit 2056e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chains/evm/logpoller/orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2056e48

Please sign in to comment.