Skip to content

Commit 549fafe

Browse files
committed
Removed spurious newlines
1 parent 853b910 commit 549fafe

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Sources/SwiftFormat/API/Configuration.swift

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ internal let highestSupportedConfigurationVersion = 1
2424
/// Holds the complete set of configured values and defaults.
2525
public struct Configuration: Codable, Equatable {
2626

27-
2827
private enum CodingKeys: CodingKey {
2928
case version
3029
case maximumBlankLines

Sources/SwiftFormat/API/SwiftLinter.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ 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 }
96-
95+
guard !source.isEmpty else { return }
9796
let sourceFile = try parseAndEmitDiagnostics(
9897
source: source,
9998
operatorTable: .standardOperators,

0 commit comments

Comments
 (0)