macos: swiftlint 'unused_optional_binding' rule

This commit is contained in:
Jon Parise
2026-02-19 19:10:38 -05:00
parent a7719a8db6
commit c418e4b581
2 changed files with 1 additions and 6 deletions

View File

@@ -22,7 +22,6 @@ disabled_rules:
- no_fallthrough_only
- switch_case_alignment
- unused_enumerated
- unused_optional_binding
- vertical_parameter_alignment
identifier_name:

View File

@@ -2,9 +2,5 @@ import Foundation
/// True if we appear to be running in Xcode.
func isRunningInXcode() -> Bool {
if let _ = ProcessInfo.processInfo.environment["__XCODE_BUILT_PRODUCTS_DIR_PATHS"] {
return true
}
return false
ProcessInfo.processInfo.environment["__XCODE_BUILT_PRODUCTS_DIR_PATHS"] != nil
}