1 parent 0b2aceb commit c450135Copy full SHA for c450135
1 file changed
Archives/Extractors/FileOperations.swift
@@ -43,10 +43,9 @@ nonisolated func removeFile(at url: URL) -> Result<Void, ExtractionError> {
43
}
44
45
nonisolated func findExecutable(named command: String, in searchPaths: [String]) -> String? {
46
- let fileManager = FileManager.default
47
for dir in searchPaths {
48
let path = (dir as NSString).appendingPathComponent(command)
49
- if fileManager.isExecutableFile(atPath: path) {
+ if FileManager.default.isExecutableFile(atPath: path) {
50
return path
51
52
0 commit comments