Make Formatter Happy
Continuous Integration / Grammar Tests (push) Successful in 37s
Continuous Integration / Library Format Tests (push) Successful in 1m49s
Continuous Integration / Library Tests (push) Successful in 4m50s

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-05-22 20:42:50 -04:00
parent 97a672bd6d
commit 925f20a13b
+6 -5
View File
@@ -56,11 +56,12 @@ public struct ErrorWithLocation: Errorable, Equatable, CustomStringConvertible {
let prior_snipped = prior.trimmingPrefix(["\n"]) let prior_snipped = prior.trimmingPrefix(["\n"])
let after_snipped = after.prefix { $0 != "\n" } let after_snipped = after.prefix { $0 != "\n" }
let include_list = fp.reversed().map { let include_list = fp.reversed().map {
let at = if let whence = $0.whence { let at =
" included at position \(whence) in" if let whence = $0.whence {
} else { " included at position \(whence) in"
"" } else {
} ""
}
return $0.path.string + at return $0.path.string + at
}.joined(separator: " ") }.joined(separator: " ")
return formatter.formatWithStyle("Error: ", Style(StyleColor.Red)) return formatter.formatWithStyle("Error: ", Style(StyleColor.Red))