Skip to content

Commit bda9bd4

Browse files
committed
Just try? to load the certificate Data and continue on failure
1 parent a8bc4f3 commit bda9bd4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/FoundationNetworking/URLSession/libcurl/EasyHandle.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,7 @@ extension _EasyHandle {
261261
// certificate files have names like "53a1b57a.0"
262262
if certURL.pathExtension != "0" { continue }
263263
do {
264-
if try certURL.resourceValues(forKeys: [.isRegularFileKey]).isRegularFile != true { continue }
265-
if try certURL.resourceValues(forKeys: [.isReadableKey]).isReadable != true { continue }
266-
try fs.write(contentsOf: try Data(contentsOf: certURL))
264+
try? fs.write(contentsOf: Data(contentsOf: certURL))
267265
} catch {
268266
// ignore individual errors and soldier on…
269267
continue

0 commit comments

Comments
 (0)