Skip to content

Commit 7a35d08

Browse files
committed
.swift-format: Enable ReturnVoidInsteadOfEmptyTuple
1 parent 24c7446 commit 7a35d08

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.swift-format

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"NoBlockComments": false,
1414
"OrderedImports": true,
1515
"UseLetInEveryBoundCaseVariable": false,
16-
"UseSynthesizedInitializer": false
16+
"UseSynthesizedInitializer": false,
17+
"ReturnVoidInsteadOfEmptyTuple": true,
1718
}
1819
}

Sources/swift-format/Frontend/FormatFrontend.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class FormatFrontend: Frontend {
4040
return
4141
}
4242

43-
let diagnosticHandler: (SwiftDiagnostics.Diagnostic, SourceLocation) -> () = {
43+
let diagnosticHandler: (SwiftDiagnostics.Diagnostic, SourceLocation) -> Void = {
4444
(diagnostic, location) in
4545
guard !self.lintFormatOptions.ignoreUnparsableFiles else {
4646
// No diagnostics should be emitted in this mode.

0 commit comments

Comments
 (0)