mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
Simplify EventType matching slightly
This commit is contained in:
@@ -169,18 +169,16 @@ fn matches_filter(&self, filter: &wstr) -> bool {
|
||||
}
|
||||
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user