Skip to content

Commit 7b35513

Browse files
committed
Oops - skipping initial directory...
1 parent 9ab91a5 commit 7b35513

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
@@ -199,7 +199,7 @@ private func inputShouldBeProcessed(at url: URL) -> Bool {
199199
return true
200200
}
201201

202-
var containingDirectory = url.absoluteURL.standardized.deletingLastPathComponent()
202+
var containingDirectory = url.absoluteURL.standardized
203203
repeat {
204204
containingDirectory.deleteLastPathComponent()
205205
let candidateFile = containingDirectory.appendingPathComponent(FileIterator.ignoreFileName)

0 commit comments

Comments
 (0)