invert condition for empty tags
This commit is contained in:
parent
3b0298be54
commit
042be476e0
|
@ -83,13 +83,12 @@ impl DockerActions {
|
||||||
&& image.repo_tags.iter().any(|tag| {
|
&& image.repo_tags.iter().any(|tag| {
|
||||||
!tag.contains(GHCR_REPO)
|
!tag.contains(GHCR_REPO)
|
||||||
&& !tag.contains(DOCKER_REPO)
|
&& !tag.contains(DOCKER_REPO)
|
||||||
&& self
|
&& !self
|
||||||
.tags
|
.tags
|
||||||
.iter()
|
.iter()
|
||||||
.any(|excluded_tag| !tag.contains(excluded_tag))
|
.any(|excluded_tag| tag.contains(excluded_tag))
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
println!("{:?}", self.tags);
|
|
||||||
to_be_deleted.push(image);
|
to_be_deleted.push(image);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue