Skip to content

Commit d2a3a1f

Browse files
committed
Call class functions properly
1 parent f9ca590 commit d2a3a1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/swift/Sources/DeviceInfo/Linux/LinuxDeviceInfo.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class LinuxDeviceInfo {
1616
let machineId: String
1717

1818
public init() {
19-
let os = getOsRelease()
20-
let lsb = getLsbRelease()
19+
let os = LinuxDeviceInfo.getOsRelease()
20+
let lsb = LinuxDeviceInfo.getLsbRelease()
2121

2222
name = os["NAME"] ?? "Linux"
2323
version = os["VERSION"] ?? lsb["LSB_VERSION"] ?? ""
@@ -29,7 +29,7 @@ class LinuxDeviceInfo {
2929
buildId = os["BUILD_ID"] ?? ""
3030
variant = os["VARIANT"] ?? ""
3131
variantId = os["VARIANT_ID"] ?? ""
32-
machineId = getMachineId()
32+
machineId = LinuxDeviceInfo.getMachineId()
3333
}
3434

3535
private static func getOsRelease() -> [String: String] {

0 commit comments

Comments
 (0)