We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae1670d commit 9d83f38Copy full SHA for 9d83f38
Sources/swift-format/Utilities/Diagnostic.swift
@@ -36,9 +36,9 @@ struct Diagnostic {
36
37
/// Creates a new diagnostic location from the given source location.
38
init(_ sourceLocation: SourceLocation) {
39
- self.file = sourceLocation.file!
40
- self.line = sourceLocation.line!
41
- self.column = sourceLocation.column!
+ self.file = sourceLocation.file
+ self.line = sourceLocation.line
+ self.column = sourceLocation.column
42
}
43
44
/// Creates a new diagnostic location with the given finding location.
0 commit comments