Skip to content

Commit 9ab91a5

Browse files
committed
Removed obsolete addition.
1 parent 5d85e22 commit 9ab91a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/SwiftFormat/API/SwiftLinter.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ public final class SwiftLinter {
9797
// If the file or input string is completely empty, do nothing. This prevents even a trailing
9898
// newline from being diagnosed for an empty file. (This is consistent with clang-format, which
9999
// also does not touch an empty file even if the setting to add trailing newlines is enabled.)
100-
guard !source.isEmpty else { return }
100+
guard !source.isEmpty else { return }
101+
101102
let sourceFile = try parseAndEmitDiagnostics(
102103
source: source,
103104
operatorTable: .standardOperators,

0 commit comments

Comments
 (0)