Skip to content

Commit

Permalink
fix: Correct code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian May committed Apr 10, 2024
1 parent 1926081 commit ea83ce2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/helm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,8 @@ impl ParsedOci {
let rc = match &result {
Ok(CommandSuccess { stdout, .. }) => {
let details: OciDetails = serde_json::from_str(stdout)?;
get_latest_version_from_details(details).map_or_else(|| Err(anyhow::anyhow!("no versions found")), Ok)
get_latest_version_from_details(details)
.map_or_else(|| Err(anyhow::anyhow!("no versions found")), Ok)
}
Err(err) => Err(anyhow::anyhow!("The describe-images command failed: {err}")),
};
Expand All @@ -670,7 +671,8 @@ impl ParsedOci {
.json()
.await?;

get_latest_version_from_tags(tags).map_or_else(|| Err(anyhow::anyhow!("no versions found")), Ok)
get_latest_version_from_tags(tags)
.map_or_else(|| Err(anyhow::anyhow!("no versions found")), Ok)
}
}
}
Expand Down

0 comments on commit ea83ce2

Please sign in to comment.