Skip to content

Commit ef73806

Browse files
committed
Fix test by deduplicating files in FileIterator.next()
1 parent f824817 commit ef73806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftFormat/Utilities/FileIterator.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ public struct FileIterator: Sequence, IteratorProtocol {
9797
output = next
9898
}
9999
}
100-
if let out = output, visited.contains(out.absoluteURL.standardized.path) {
100+
if let out = output, visited.contains(out.absoluteURL.standardized.standardizedFileURL.path) {
101101
output = nil
102102
}
103103
}
104104
if let out = output {
105-
visited.insert(out.absoluteURL.standardized.path)
105+
visited.insert(out.absoluteURL.standardized.standardizedFileURL.path)
106106
}
107107
return output
108108
}

0 commit comments

Comments
 (0)