Skip to content

Commit

Permalink
wrapped error lint
Browse files Browse the repository at this point in the history
  • Loading branch information
golangisfun123 committed Jun 21, 2024
1 parent 1ec0562 commit 888792f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethergo/listener/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (c *chainListener) doPoll(parentCtx context.Context, handler HandleLog) (er
func (c chainListener) getBlockNumber(ctx context.Context) (uint64, error) {
block, err := c.client.BlockByNumber(ctx, big.NewInt(c.finalityMode.Int64()))
if err != nil {
return 0, err
return 0, fmt.Errorf("could not get block by number: %w", err)
}

Check warning on line 195 in ethergo/listener/listener.go

View check run for this annotation

Codecov / codecov/patch

ethergo/listener/listener.go#L194-L195

Added lines #L194 - L195 were not covered by tests

blockNumber := block.Number()
Expand Down

0 comments on commit 888792f

Please sign in to comment.