mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
fix: fixed swiftlint errors
This commit is contained in:
@@ -225,7 +225,7 @@ internal class DevicesReader: Reader<[BLEDevice]>, CBCentralManagerDelegate, CBP
|
||||
// MARK: - system_profiler
|
||||
|
||||
private func profilerDevices() -> ([bleDevice], [String]) {
|
||||
if #available(macOS 11, *) {} else { return ([], []) }
|
||||
if #unavailable(macOS 11) { return ([], []) }
|
||||
|
||||
guard let res = process(path: "/usr/sbin/system_profiler", arguments: ["SPBluetoothDataType", "-json"]) else {
|
||||
return ([], [])
|
||||
|
||||
Reference in New Issue
Block a user