diff --git a/macos/.swiftlint.yml b/macos/.swiftlint.yml index 4cbaf0fac..7a27b45da 100644 --- a/macos/.swiftlint.yml +++ b/macos/.swiftlint.yml @@ -11,6 +11,7 @@ disabled_rules: - function_body_length - line_length - nesting + - no_fallthrough_only - todo - trailing_comma - trailing_newline @@ -20,7 +21,6 @@ disabled_rules: - for_where - force_cast - multiple_closures_with_trailing_closure - - no_fallthrough_only - switch_case_alignment identifier_name: diff --git a/macos/Sources/App/macOS/AppDelegate.swift b/macos/Sources/App/macOS/AppDelegate.swift index 1aa597a25..1b740e369 100644 --- a/macos/Sources/App/macOS/AppDelegate.swift +++ b/macos/Sources/App/macOS/AppDelegate.swift @@ -380,13 +380,7 @@ class AppDelegate: NSObject, if let why = event.attributeDescriptor(forKeyword: keyword) { switch why.typeCodeValue { - case kAEShutDown: - fallthrough - - case kAERestart: - fallthrough - - case kAEReallyLogOut: + case kAEShutDown, kAERestart, kAEReallyLogOut: return .terminateNow default: