Skip to content

Commit

Permalink
Simplify 'balances.isChallengedAddress'.
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Kiselev <[email protected]>
  • Loading branch information
nickeskov and alexeykiselev authored Aug 24, 2024
1 parent 5ffd0d5 commit 2854b10
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/state/balances.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,10 +782,7 @@ func (s *balances) isChallengedAddressInRange(addr proto.AddressID, startHeight,
}

func (s *balances) isChallengedAddress(addr proto.AddressID, height proto.Height) (bool, error) {
var (
startHeight = height
endHeight = startHeight // we're checking only one height, so the heights are the same
)
startHeight, endHeight := height, height // we're checking only one height, so the heights are the same

Check failure on line 785 in pkg/state/balances.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

File is not `goimports`-ed (goimports)
return s.isChallengedAddressInRange(addr, startHeight, endHeight)
}

Expand Down

0 comments on commit 2854b10

Please sign in to comment.