From 9518eac182afec1804e3b72e6c16491130496553 Mon Sep 17 00:00:00 2001 From: Jimmy Chen Date: Mon, 27 Apr 2026 13:40:03 +0200 Subject: [PATCH] Fix lint and incorrect condition --- beacon_node/operation_pool/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/beacon_node/operation_pool/src/lib.rs b/beacon_node/operation_pool/src/lib.rs index a94414f734..fa5fd363d4 100644 --- a/beacon_node/operation_pool/src/lib.rs +++ b/beacon_node/operation_pool/src/lib.rs @@ -2244,9 +2244,9 @@ mod release_tests { #[tokio::test] async fn payload_attestation_packs_bits_from_ptc_positions() { let spec = test_spec::(); - if !spec.gloas_fork_epoch.is_some_and(|e| e == Epoch::new(0)) { + if spec.gloas_fork_epoch.is_none() { return; - } + }; let num_validators = 64; let harness = get_harness::(num_validators, Some(spec.clone())); @@ -2301,9 +2301,9 @@ mod release_tests { #[tokio::test] async fn payload_attestation_filters_wrong_root() { let spec = test_spec::(); - if !spec.gloas_fork_epoch.is_some_and(|e| e == Epoch::new(0)) { + if spec.gloas_fork_epoch.is_none() { return; - } + }; let num_validators = 64; let harness = get_harness::(num_validators, Some(spec.clone())); @@ -2348,9 +2348,9 @@ mod release_tests { #[tokio::test] async fn payload_attestation_non_ptc_validator_skipped() { let spec = test_spec::(); - if !spec.gloas_fork_epoch.is_some_and(|e| e == Epoch::new(0)) { + if spec.gloas_fork_epoch.is_none() { return; - } + }; let num_validators = 64; let harness = get_harness::(num_validators, Some(spec.clone()));