simplify some swift

This commit is contained in:
Mitchell Hashimoto
2023-11-07 15:26:41 -08:00
parent cd01340cce
commit d482fed7f2

View File

@ -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):
guard case .split(let c) = node else { return }
_ = c.equalize()
default:
return
}
}
}