Skip to content

Commit b9065b1

Browse files
committed
Simplify the code by replacing .abosoluteURL.standardized with .standardizedFileURL
1 parent 5f90fb3 commit b9065b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftFormat/Utilities/FileIterator.swift

Lines changed: 2 additions & 2 deletions
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.standardizedFileURL.path) {
100+
if let out = output, visited.contains(out.standardizedFileURL.path) {
101101
output = nil
102102
}
103103
}
104104
if let out = output {
105-
visited.insert(out.absoluteURL.standardized.standardizedFileURL.path)
105+
visited.insert(out.standardizedFileURL.path)
106106
}
107107
return output
108108
}

0 commit comments

Comments
 (0)