Skip to content

Commit 01a2fd2

Browse files
committed
Code style fix
1 parent 2936d32 commit 01a2fd2

File tree

1 file changed

+4
-4
lines changed
  • anchor/validator_store/src

1 file changed

+4
-4
lines changed

anchor/validator_store/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,10 @@ impl<T: SlotClock, E: EthSpec> AnchorValidatorStore<T, E> {
593593
fn is_cluster_active(&self, validator_pubkey: &PublicKeyBytes) -> bool {
594594
let state = self.database.state();
595595

596-
if let Some(validator) = state.metadata().get_by(validator_pubkey) {
597-
if let Some(cluster) = state.clusters().get_by(&validator.cluster_id) {
598-
return !cluster.liquidated;
599-
}
596+
if let Some(validator) = state.metadata().get_by(validator_pubkey)
597+
&& let Some(cluster) = state.clusters().get_by(&validator.cluster_id)
598+
{
599+
return !cluster.liquidated;
600600
}
601601

602602
// We did not manage to fetch the cluster

0 commit comments

Comments
 (0)