From 9851d7aa2f4953383448de9ef51e255ee3e7eb44 Mon Sep 17 00:00:00 2001 From: Sam Deane Date: Thu, 7 Nov 2024 15:13:50 +0000 Subject: [PATCH] Removed obsolete addition. --- Sources/SwiftFormat/API/SwiftLinter.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/SwiftFormat/API/SwiftLinter.swift b/Sources/SwiftFormat/API/SwiftLinter.swift index 00267efb..bfccbb72 100644 --- a/Sources/SwiftFormat/API/SwiftLinter.swift +++ b/Sources/SwiftFormat/API/SwiftLinter.swift @@ -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,