Skip to content

Commit 3d67fcb

Browse files
committed
Remove unnecesssary elses in handle_block_validate_*
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 41c0369 commit 3d67fcb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stacks-signer/src/v0/signer.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,8 @@ impl Signer {
520520
{
521521
debug!("{self}: Received block validation for a block that is already marked as {}. Ignoring...", block_info.state);
522522
return None;
523-
} else {
524-
block_info
525523
}
524+
block_info
526525
}
527526
Ok(None) => {
528527
// We have not seen this block before. Why are we getting a response for it?
@@ -569,9 +568,8 @@ impl Signer {
569568
{
570569
debug!("{self}: Received block validation for a block that is already marked as {}. Ignoring...", block_info.state);
571570
return None;
572-
} else {
573-
block_info
574571
}
572+
block_info
575573
}
576574
Ok(None) => {
577575
// We have not seen this block before. Why are we getting a response for it?

0 commit comments

Comments
 (0)