Skip to content

Commit 5f90fb3

Browse files
committed
Remove isDirectory: false so that URL can infer it
1 parent ef73806 commit 5f90fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftFormat/Utilities/FileIterator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public struct FileIterator: Sequence, IteratorProtocol {
135135
else {
136136
break
137137
}
138-
path = URL(fileURLWithPath: destination, isDirectory: false, relativeTo: item).path
138+
path = URL(fileURLWithPath: destination, relativeTo: item).path
139139
fallthrough
140140

141141
case .typeRegular:

0 commit comments

Comments
 (0)