We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3648d13 + 587d44f commit bbd2588Copy full SHA for bbd2588
Foundation/NSPathUtilities.swift
@@ -14,7 +14,7 @@ public func NSTemporaryDirectory() -> String {
14
let cchLength: DWORD = GetTempPathW(0, nil)
15
var wszPath: [WCHAR] = Array<WCHAR>(repeating: 0, count: Int(cchLength + 1))
16
guard GetTempPathW(DWORD(wszPath.count), &wszPath) <= cchLength else {
17
- precondition(false, "GetTempPathW mutation race")
+ preconditionFailure("GetTempPathW mutation race")
18
}
19
return String(decodingCString: wszPath, as: UTF16.self)
20
#else
0 commit comments