mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 06:56:09 +08:00
Simplify EventType matching slightly
This commit is contained in:
parent
dabe7a1c7c
commit
8e9dc74a02
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user