Skip to content

Commit

Permalink
changed to is_empty() and removed WARN
Browse files Browse the repository at this point in the history
  • Loading branch information
kamuik16 committed Feb 28, 2024
1 parent 8806f2b commit 0140ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validator_client/src/attestation_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ impl<T: SlotClock + 'static, E: EthSpec> AttestationService<T, E> {
.flatten()
.unzip();

if attestations.len() == 0 {
warn!(log, "WARN: No attestations were published");
if attestations.is_empty() {
warn!(log, "No attestations were published");
return Ok(None);
}

Expand Down

0 comments on commit 0140ac3

Please sign in to comment.