File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Sources/SwiftFormat/PrettyPrint
Tests/SwiftFormatTests/PrettyPrint Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -558,9 +558,7 @@ public class PrettyPrinter {
558
558
/// Indicates whether the current line can fit a string of the given length. If no length
559
559
/// is given, it indicates whether the current line can accomodate *any* text.
560
560
private func canFit( _ length: Int = 1 ) -> Bool {
561
- // print("\(length)")
562
561
let spaceRemaining = configuration. lineLength - outputBuffer. column
563
- // print("let \(spaceRemaining) = \(configuration.lineLength) - \(outputBuffer.column)")
564
562
return outputBuffer. isAtStartOfLine || length <= spaceRemaining
565
563
}
566
564
Original file line number Diff line number Diff line change @@ -985,7 +985,7 @@ final class CommentTests: PrettyPrintTestCase {
985
985
assertPrettyPrintEqual (
986
986
input: """
987
987
import veryveryverylongmodulenameherebecauseitistypical // special sentinel comment
988
-
988
+
989
989
let x // this comment should line up with 45
990
990
func fooBarBazRunningOutOfIdeas() { 1️⃣// comment that needs to move
991
991
if foo { // comment is fine
You can’t perform that action at this time.
0 commit comments