Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kamuik16 committed Oct 22, 2024
1 parent 7dbccc8 commit 2aa3dc1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions actors/miner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1482,11 +1482,8 @@ impl Actor {
sectors: Vec<SectorPreCommitInfoInner>,
) -> Result<(), ActorError> {
let curr_epoch = rt.curr_epoch();
{
let policy = rt.policy();
if sectors.is_empty() {
return Err(actor_error!(illegal_argument, "batch empty"));
}
if sectors.is_empty() {
return Err(actor_error!(illegal_argument, "batch empty"));
}
// Check per-sector preconditions before opening state transaction or sending other messages.
let challenge_earliest = curr_epoch - rt.policy().max_pre_commit_randomness_lookback;
Expand Down

0 comments on commit 2aa3dc1

Please sign in to comment.