Skip to content

Commit

Permalink
small nit
Browse files Browse the repository at this point in the history
  • Loading branch information
sunce86 committed Oct 17, 2024
1 parent a0f59df commit be898f0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/autopilot/src/infra/persistence/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,12 +816,9 @@ impl Persistence {
.await
.context("fetch lowest auction id")?;

let mut current_auction_id = match current_auction_id {
Some(auction_id) => auction_id,
None => {
tracing::info!("competition_auctions is empty, nothing to process");
return Ok(());
}
let Some(mut current_auction_id) = current_auction_id else {
tracing::info!("competition_auctions is empty, nothing to process");
return Ok(());
};

loop {
Expand Down

0 comments on commit be898f0

Please sign in to comment.