Skip to content

Commit

Permalink
chore: Removes print of every digest
Browse files Browse the repository at this point in the history
Closes #2
  • Loading branch information
andyquinterom committed Jan 21, 2025
1 parent 97f6d72 commit 032945b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/manifests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ fn get_latest_digest(registry: &str, image: &str, tag: &str) -> Option<Sha256> {
.arg(format!("{registry}/{image}:{tag}"))
.output();
let val: DockerManifestsResponse = match output_result {
Ok(manifest_output) => {
std::io::stdout().write_all(&manifest_output.stdout);
serde_json::from_slice(&manifest_output.stdout).ok()?
}
Ok(manifest_output) => serde_json::from_slice(&manifest_output.stdout).ok()?,
Err(e) => {
log::error!("Unable to get manifest for {registry}/{image}:{tag}: {e}");
return None;
Expand Down

0 comments on commit 032945b

Please sign in to comment.