mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
simplify some swift
This commit is contained in:
@ -139,13 +139,8 @@ extension Ghostty {
|
||||
}
|
||||
|
||||
func onEqualize(notification: SwiftUI.Notification) {
|
||||
// If there are no splits then there is nothing to do
|
||||
switch (node) {
|
||||
case .split(let c):
|
||||
_ = c.equalize()
|
||||
default:
|
||||
return
|
||||
}
|
||||
guard case .split(let c) = node else { return }
|
||||
_ = c.equalize()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user