Skip to content

Commit

Permalink
Fix check for isDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
marcprux committed Jan 25, 2025
1 parent f53fce2 commit ff12e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swift-android-foundation-cacerts.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ index cdf8875fce..5fbb8afbad 100644
+
+ for certsFolder in certsFolders {
+ var isDirectory: ObjCBool = false
+ if FileManager.default.fileExists(atPath: certsFolder, isDirectory: &isDirectory), isDirectory == true {
+ if FileManager.default.fileExists(atPath: certsFolder, isDirectory: &isDirectory), isDirectory.boolValue == true {
+ certsFolder.withCString { pathPtr in
+ try! CFURLSession_easy_setopt_ptr(rawHandle, CFURLSessionOptionCAPATH, UnsafeMutablePointer(mutating: pathPtr)).asError()
+ }
Expand Down

0 comments on commit ff12e16

Please sign in to comment.