fix: fixed swiftlint errors

This commit is contained in:
Serhiy Mytrovtsiy
2022-07-10 12:45:38 +02:00
parent 58ed03125f
commit 07b29a41cb
3 changed files with 3 additions and 2 deletions

View File

@@ -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 ([], [])