Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
exoego committed Mar 28, 2024
1 parent caca15d commit b958b9d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lambda_invoker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,8 @@ impl LambdaInvoker {
Some(last_update_status) => {
info!("Checking if last update is successful: {last_update_status}");
match last_update_status {
LastUpdateStatus::Successful => {
Ok(true)
}
LastUpdateStatus::Failed | LastUpdateStatus::InProgress => {
Ok(false)
}
LastUpdateStatus::Successful => Ok(true),
LastUpdateStatus::Failed | LastUpdateStatus::InProgress => Ok(false),
unknown => {
warn!("LastUpdateStatus unknown: {unknown}");
Err(anyhow!("Unknown LastUpdateStatus, fn config is {config:?}"))
Expand Down

0 comments on commit b958b9d

Please sign in to comment.