diff --git a/ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/rules/ChainMethodContinuationRule.kt b/ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/rules/ChainMethodContinuationRule.kt index 5ddf6d1bdd..51f30c36aa 100644 --- a/ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/rules/ChainMethodContinuationRule.kt +++ b/ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/rules/ChainMethodContinuationRule.kt @@ -146,7 +146,6 @@ public class ChainMethodContinuationRule : chainOperator.shouldBeOnSameLineAsClosingElementOfPreviousExpressionInMethodChain() -> { removeWhiteSpaceBeforeChainOperator(chainOperator, emit, autoCorrect) } - wrapBeforeEachChainOperator || exceedsMaxLineLength || chainOperator.isPrecededByComment() -> { insertWhiteSpaceBeforeChainOperator(chainOperator, emit, autoCorrect) }