Simplify EventType matching slightly

This commit is contained in:
Mahmoud Al-Qudsi 2023-03-12 16:01:59 -05:00
parent dabe7a1c7c
commit 8e9dc74a02

View File

@ -169,18 +169,16 @@ impl EventType {
}
match self {
EventType::Any => return false,
EventType::Any => false,
EventType::ProcessExit { .. }
| EventType::JobExit { .. }
| EventType::CallerExit { .. } => {
if filter == L!("exit") {
return true;
}
| EventType::CallerExit { .. }
if filter == L!("exit") =>
{
true
}
_ => {}
_ => filter == self.name(),
}
filter == self.name()
}
}