mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
clippy: add redundant_else clippy lint (#10525)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -51,10 +51,9 @@ where
|
||||
tracing::warn!(target: "engine::stream::skip_fcu", ?state, ?payload_attrs, threshold=this.threshold, skipped=this.skipped, "Skipping FCU");
|
||||
let _ = tx.send(Ok(OnForkChoiceUpdated::syncing()));
|
||||
continue
|
||||
} else {
|
||||
*this.skipped = 0;
|
||||
Some(BeaconEngineMessage::ForkchoiceUpdated { state, payload_attrs, tx })
|
||||
}
|
||||
*this.skipped = 0;
|
||||
Some(BeaconEngineMessage::ForkchoiceUpdated { state, payload_attrs, tx })
|
||||
}
|
||||
next => next,
|
||||
};
|
||||
|
||||
@ -54,10 +54,9 @@ where
|
||||
);
|
||||
let _ = tx.send(Ok(PayloadStatus::from_status(PayloadStatusEnum::Syncing)));
|
||||
continue
|
||||
} else {
|
||||
*this.skipped = 0;
|
||||
Some(BeaconEngineMessage::NewPayload { payload, cancun_fields, tx })
|
||||
}
|
||||
*this.skipped = 0;
|
||||
Some(BeaconEngineMessage::NewPayload { payload, cancun_fields, tx })
|
||||
}
|
||||
next => next,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user