Skip to content

Commit 147ff95

Browse files
committed
Update Hardware.swift
1 parent 9f58684 commit 147ff95

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎Mist/Model/Hardware.swift‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,10 @@ enum Hardware {
4949
///
5050
/// - Returns: The entity property for the provided key.
5151
private static func registryProperty(for key: String) -> String? {
52-
let entry: io_service_t
53-
54-
if #available(macOS 12.0, *) {
55-
entry = IOServiceGetMatchingService(kIOMainPortDefault, IOServiceMatching("IOPlatformExpertDevice"))
52+
let entry: io_service_t = if #available(macOS 12.0, *) {
53+
IOServiceGetMatchingService(kIOMainPortDefault, IOServiceMatching("IOPlatformExpertDevice"))
5654
} else {
57-
entry = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("IOPlatformExpertDevice"))
55+
IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("IOPlatformExpertDevice"))
5856
}
5957

6058
defer {

0 commit comments

Comments
 (0)