Skip to content

Commit b27cf2e

Browse files
authored
Addressed the Sendable warnings in ProcessInfo (swiftlang#383)
1 parent 15159cc commit b27cf2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/FoundationEssentials/ProcessInfo/ProcessInfo.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ final class _ProcessInfo: Sendable {
151151
}
152152
}
153153

154-
private lazy var _canEUIDsChange: Bool = {
154+
private var _canEUIDsChange: Bool {
155155
#if os(macOS)
156156
let euid = geteuid()
157157
let uid = getuid()
@@ -163,7 +163,7 @@ final class _ProcessInfo: Sendable {
163163
#else
164164
return true
165165
#endif
166-
}()
166+
}
167167
}
168168

169169
// MARK: - Getting Host Information

0 commit comments

Comments
 (0)