Skip to content

Commit 34c4d18

Browse files
committed
Fix formatting
1 parent df54241 commit 34c4d18

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/SwiftDiagnostics/GroupedDiagnostics.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ extension GroupedDiagnostics {
150150

151151
// If this is a root note, take the first note.
152152
if sourceFile.parent == nil,
153-
let note = sourceFile.diagnostics.first {
153+
let note = sourceFile.diagnostics.first
154+
{
154155
return (sourceFile, note)
155156
}
156157

@@ -205,7 +206,8 @@ extension GroupedDiagnostics {
205206
// Provide a link back to the original source file where this generated buffer occurred, so it's easy to find if
206207
// (for example) the generated buffer is no longer available.
207208
if sourceFile.id != primaryDiagSourceFile.id,
208-
var (rootSourceID, rootPosition) = primaryDiagSourceFile.parent {
209+
var (rootSourceID, rootPosition) = primaryDiagSourceFile.parent
210+
{
209211
// Go all the way up to the root to find the absolute position of the outermost generated buffer within the
210212
// root source file.
211213
while let parent = sourceFiles[rootSourceID.id].parent {

0 commit comments

Comments
 (0)