Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nambrot committed Oct 28, 2023
1 parent a169a6e commit f084041
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rust/agents/validator/src/submit.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
use std::num::NonZeroU64;
use std::str::FromStr;
use std::sync::Arc;
use std::time::{Duration, Instant};
use std::vec;

use eyre::{bail, Result};
use hyperlane_core::{MerkleTreeHook, H256};
use hyperlane_core::MerkleTreeHook;
use prometheus::IntGauge;
use tokio::time::sleep;
use tracing::{debug, info};
Expand Down Expand Up @@ -217,7 +216,7 @@ impl ValidatorSubmitter {
bail!("Incorrect tree root, something went wrong");
}

if (checkpoint_queue.len() > 0) {
if !checkpoint_queue.is_empty() {
info!(
index = checkpoint.index,
queue_len = checkpoint_queue.len(),
Expand Down

0 comments on commit f084041

Please sign in to comment.