diff --git a/src/api-wrappers/AXUIElement.swift b/src/api-wrappers/AXUIElement.swift index 33462d26..35518520 100644 --- a/src/api-wrappers/AXUIElement.swift +++ b/src/api-wrappers/AXUIElement.swift @@ -31,7 +31,7 @@ extension AXUIElement { return try axCallWhichCanThrow(AXUIElementGetPid(self, &pid), &pid) } - func attribute(_ key: String, _ type: T.Type) throws -> T? { + func attribute(_ key: String, _ _: T.Type) throws -> T? { var value: AnyObject? return try axCallWhichCanThrow(AXUIElementCopyAttributeValue(self, key as CFString, &value), &value) as? T }