chore: clippy todo warn

This commit is contained in:
Jack Wills
2023-02-03 21:49:19 +00:00
parent 799800ef23
commit d48e6561f9
2 changed files with 14 additions and 8 deletions
+8 -7
View File
@@ -191,15 +191,16 @@ impl DockerData {
.into_iter()
.filter_map(|f| match f.id {
Some(_) => {
if self.containerised && f.command
if self.containerised
&& f.command
.as_ref()
.map_or(false, |c| c.starts_with(ENTRY_POINT))
&& self.args.show_self
{
None
} else {
Some(f)
}
&& self.args.show_self
{
None
} else {
Some(f)
}
}
None => None,
})