Skip to content

Commit a1b1415

Browse files
committed
simplify if statement
1 parent e639b14 commit a1b1415

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Sources/swift-parser-test/DiagnosticsFormatter.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,8 @@ struct DiagnosticsFormatter {
5858

5959
let diagsForLine = diags.filter { diag in
6060
let line = diag.location(converter: slc).line
61-
if line == (sourceLines.count + 1) {
62-
return true
63-
}
64-
return false
61+
return line == (sourceLines.count + 1)
6562
}
66-
6763
sourceLines.append(SourceLine(diagnostics: .init(diagsForLine), sourceString: String(sourceLine)))
6864
}
6965

0 commit comments

Comments
 (0)