Skip to content

Commit

Permalink
Removed obsolete addition.
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Nov 7, 2024
1 parent ed63007 commit bf42ce7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/SwiftFormat/API/SwiftLinter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public final class SwiftLinter {
// If the file or input string is completely empty, do nothing. This prevents even a trailing
// newline from being diagnosed for an empty file. (This is consistent with clang-format, which
// also does not touch an empty file even if the setting to add trailing newlines is enabled.)
guard !source.isEmpty else { return }
guard !source.isEmpty else { return }

let sourceFile = try parseAndEmitDiagnostics(
source: source,
operatorTable: .standardOperators,
Expand Down

0 comments on commit bf42ce7

Please sign in to comment.