Skip to content

Commit e21e0b4

Browse files
author
Eliza Block
committed
format
1 parent de27ae6 commit e21e0b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftDiagnostics/Diagnostic.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ public struct Diagnostic: CustomDebugStringConvertible {
7474

7575
public struct DiagnosticsError: Error {
7676
public var diagnostics: [Diagnostic]
77-
77+
7878
/// The diagnostics must contain at least one with severity == `.error`.
7979
/// Asserts if this condition is not satisfied.
8080
public init(diagnostics: [Diagnostic]) {
8181
self.diagnostics = diagnostics
82-
82+
8383
assert(
8484
diagnostics.contains(where: { $0.diagMessage.severity == .error }),
8585
"at least one diagnostic must have severity == .error"

0 commit comments

Comments
 (0)