Skip to content

Commit b367d5b

Browse files
committed
Fix check for isDirectory.boolValue
1 parent 52453cb commit b367d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationNetworking/URLSession/libcurl/EasyHandle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ extension _EasyHandle {
230230

231231
for certsFolder in certsFolders {
232232
var isDirectory: ObjCBool = false
233-
if FileManager.default.fileExists(atPath: certsFolder, isDirectory: &isDirectory), isDirectory == true {
233+
if FileManager.default.fileExists(atPath: certsFolder, isDirectory: &isDirectory), isDirectory.boolValue == true {
234234
certsFolder.withCString { pathPtr in
235235
try! CFURLSession_easy_setopt_ptr(rawHandle, CFURLSessionOptionCAPATH, UnsafeMutablePointer(mutating: pathPtr)).asError()
236236
}

0 commit comments

Comments
 (0)