Skip to content

Commit

Permalink
bor: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anshalshukla committed Oct 20, 2023
1 parent b2a1f18 commit 0348ef2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions consensus/bor/bor.go
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,13 @@ func (c *Bor) Finalize(chain consensus.ChainHeaderReader, header *types.Header,
headerNumber := header.Number.Uint64()

if withdrawals != nil {
//nolint
withdrawals = nil
log.Error("Bor does not support withdrawals", "number", headerNumber)

Check failure on line 822 in consensus/bor/bor.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-20.04)

only cuddled expressions if assigning variable or using from line above (wsl)
}

if header.WithdrawalsHash != nil {
//nolint
header.WithdrawalsHash = nil
log.Error("Bor does not support withdrawalHash", "number", headerNumber)

Check failure on line 828 in consensus/bor/bor.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-20.04)

only cuddled expressions if assigning variable or using from line above (wsl)
}
Expand Down Expand Up @@ -901,10 +903,14 @@ func (c *Bor) FinalizeAndAssemble(ctx context.Context, chain consensus.ChainHead
headerNumber := header.Number.Uint64()

if withdrawals != nil {
//nolint
withdrawals = nil
log.Error("Bor does not support withdrawals", "number", headerNumber)

Check failure on line 908 in consensus/bor/bor.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-20.04)

only cuddled expressions if assigning variable or using from line above (wsl)
}

if header.WithdrawalsHash != nil {
//nolint
header.WithdrawalsHash = nil
log.Error("Bor does not support withdrawalHash", "number", headerNumber)

Check failure on line 914 in consensus/bor/bor.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-20.04)

only cuddled expressions if assigning variable or using from line above (wsl)
}

Expand Down

0 comments on commit 0348ef2

Please sign in to comment.