Skip to content

Commit b0554ec

Browse files
committed
Oops - skipping initial directory...
1 parent 8542e17 commit b0554ec

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
@@ -189,7 +189,7 @@ private func inputShouldBeProcessed(at url: URL) -> Bool {
189189
return true
190190
}
191191

192-
var containingDirectory = url.absoluteURL.standardized.deletingLastPathComponent()
192+
var containingDirectory = url.absoluteURL.standardized
193193
repeat {
194194
containingDirectory.deleteLastPathComponent()
195195
let candidateFile = containingDirectory.appendingPathComponent(FileIterator.ignoreFileName)

0 commit comments

Comments
 (0)