Skip to content

Commit 3823919

Browse files
committed
formatting
1 parent 872e303 commit 3823919

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,9 +558,7 @@ public class PrettyPrinter {
558558
/// Indicates whether the current line can fit a string of the given length. If no length
559559
/// is given, it indicates whether the current line can accomodate *any* text.
560560
private func canFit(_ length: Int = 1) -> Bool {
561-
// print("\(length)")
562561
let spaceRemaining = configuration.lineLength - outputBuffer.column
563-
// print("let \(spaceRemaining) = \(configuration.lineLength) - \(outputBuffer.column)")
564562
return outputBuffer.isAtStartOfLine || length <= spaceRemaining
565563
}
566564

Tests/SwiftFormatTests/PrettyPrint/CommentTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ final class CommentTests: PrettyPrintTestCase {
985985
assertPrettyPrintEqual(
986986
input: """
987987
import veryveryverylongmodulenameherebecauseitistypical // special sentinel comment
988-
988+
989989
let x // this comment should line up with 45
990990
func fooBarBazRunningOutOfIdeas() { 1️⃣// comment that needs to move
991991
if foo { // comment is fine

0 commit comments

Comments
 (0)