From 042be476e0dc260844a3e0f6164d88e0c887b9fc Mon Sep 17 00:00:00 2001 From: DataHearth Date: Wed, 16 Mar 2022 13:59:16 +0100 Subject: [PATCH] invert condition for empty tags --- src/images.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/images.rs b/src/images.rs index ff8a0d6..8345b71 100644 --- a/src/images.rs +++ b/src/images.rs @@ -83,13 +83,12 @@ impl DockerActions { && image.repo_tags.iter().any(|tag| { !tag.contains(GHCR_REPO) && !tag.contains(DOCKER_REPO) - && self + && !self .tags .iter() - .any(|excluded_tag| !tag.contains(excluded_tag)) + .any(|excluded_tag| tag.contains(excluded_tag)) }) { - println!("{:?}", self.tags); to_be_deleted.push(image); } }