Skip to content

Commit

Permalink
Simplify the code by replacing .abosoluteURL.standardized with `.st…
Browse files Browse the repository at this point in the history
…andardizedFileURL`
  • Loading branch information
kkebo committed Oct 17, 2024
1 parent 5f90fb3 commit b9065b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftFormat/Utilities/FileIterator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ public struct FileIterator: Sequence, IteratorProtocol {
output = next
}
}
if let out = output, visited.contains(out.absoluteURL.standardized.standardizedFileURL.path) {
if let out = output, visited.contains(out.standardizedFileURL.path) {
output = nil
}
}
if let out = output {
visited.insert(out.absoluteURL.standardized.standardizedFileURL.path)
visited.insert(out.standardizedFileURL.path)
}
return output
}
Expand Down

0 comments on commit b9065b1

Please sign in to comment.