Skip to content

Commit 9851d7a

Browse files
committed
Removed obsolete addition.
1 parent ed63007 commit 9851d7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/SwiftFormat/API/SwiftLinter.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public final class SwiftLinter {
9292
// If the file or input string is completely empty, do nothing. This prevents even a trailing
9393
// newline from being diagnosed for an empty file. (This is consistent with clang-format, which
9494
// also does not touch an empty file even if the setting to add trailing newlines is enabled.)
95-
guard !source.isEmpty else { return }
95+
guard !source.isEmpty else { return }
96+
9697
let sourceFile = try parseAndEmitDiagnostics(
9798
source: source,
9899
operatorTable: .standardOperators,

0 commit comments

Comments
 (0)