mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-13 19:15:48 +00:00
macos: swiftlint 'unused_enumerated' rule (#10888)
This commit is contained in:
@@ -22,7 +22,6 @@ disabled_rules:
|
||||
- multiple_closures_with_trailing_closure
|
||||
- no_fallthrough_only
|
||||
- switch_case_alignment
|
||||
- unused_enumerated
|
||||
|
||||
identifier_name:
|
||||
min_length: 1
|
||||
|
||||
@@ -1544,7 +1544,7 @@ extension TerminalController {
|
||||
case #selector(closeTabsOnTheRight):
|
||||
guard let window, let tabGroup = window.tabGroup else { return false }
|
||||
guard let currentIndex = tabGroup.windows.firstIndex(of: window) else { return false }
|
||||
return tabGroup.windows.enumerated().contains { $0.offset > currentIndex }
|
||||
return tabGroup.windows.indices.contains { $0 > currentIndex }
|
||||
|
||||
case #selector(returnToDefaultSize):
|
||||
guard let window else { return false }
|
||||
|
||||
Reference in New Issue
Block a user