From 032945b6f294b111c8b071661ade76ac625b4d38 Mon Sep 17 00:00:00 2001 From: andres Date: Tue, 21 Jan 2025 09:57:32 -0500 Subject: [PATCH] chore: Removes print of every digest Closes #2 --- src/manifests.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/manifests.rs b/src/manifests.rs index 7adc0b0..a567d60 100644 --- a/src/manifests.rs +++ b/src/manifests.rs @@ -119,10 +119,7 @@ fn get_latest_digest(registry: &str, image: &str, tag: &str) -> Option { .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;