invert condition for empty tags

This commit is contained in:
DataHearth 2022-03-16 13:59:16 +01:00
parent 3b0298be54
commit 042be476e0
No known key found for this signature in database
GPG Key ID: E88FD356ACC5F3C4
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}