Skip to content

Commit f61541c

Browse files
committed
fix err shadowing linter warning
1 parent c4540ba commit f61541c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/monitor/monitor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ func monitor(ctx context.Context) error {
159159

160160
// check if EIP-1559 is supported
161161
eip1559Supported := false
162-
if latestBlock, err := ec.BlockByNumber(ctx, big.NewInt(0).SetUint64(latestBlockNumber)); err != nil {
162+
latestBlock, err := ec.BlockByNumber(ctx, big.NewInt(0).SetUint64(latestBlockNumber))
163+
if err != nil {
163164
log.Debug().Err(err).Msg("Unable to get latest block")
164165
} else {
165166
if latestBlock.BaseFee() == nil {

0 commit comments

Comments
 (0)