Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista committed Sep 30, 2024
1 parent e8e520a commit db6dbac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/chains/evm/logpoller/orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package logpoller
import (
"context"
"database/sql"
"errors"
"fmt"
"math/big"
"strings"
Expand Down Expand Up @@ -312,7 +313,7 @@ func (o *DSORM) DeleteBlocksBefore(ctx context.Context, end int64, limit int64)
err = o.ds.GetContext(ctx, &limitBlock, `SELECT MIN(block_number) FROM evm.log_poller_blocks
WHERE evm_chain_id = $1`, ubig.New(o.chainID))
if err != nil {
if err == sql.ErrNoRows {
if errors.Is(err, sql.ErrNoRows) {
return 0, nil
}
return 0, err
Expand Down

0 comments on commit db6dbac

Please sign in to comment.