From 72ebee433d9c2d05841294cdfb48707fb7905521 Mon Sep 17 00:00:00 2001 From: Albert Meltzer <7529386+kitbellew@users.noreply.github.com> Date: Tue, 31 Dec 2024 09:13:39 -0800 Subject: [PATCH] ScalafmtConfig: remove unnecessary validity check --- .../src/main/scala/org/scalafmt/config/ScalafmtConfig.scala | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scalafmt-core/shared/src/main/scala/org/scalafmt/config/ScalafmtConfig.scala b/scalafmt-core/shared/src/main/scala/org/scalafmt/config/ScalafmtConfig.scala index 333e9ae61..308e6e366 100644 --- a/scalafmt-core/shared/src/main/scala/org/scalafmt/config/ScalafmtConfig.scala +++ b/scalafmt-core/shared/src/main/scala/org/scalafmt/config/ScalafmtConfig.scala @@ -383,10 +383,6 @@ object ScalafmtConfig { addIf(getTrailingCommas.eq(TrailingCommas.keep)) } if (newlines.source == Newlines.unfold) addIf(align.arrowEnumeratorGenerator) - if (newlines.source != Newlines.classic) { - addIf(newlines.selectChains.classicKeepAfterFirstBreak) - addIf(!newlines.selectChains.classicCanStartWithBraceApply) - } if (errors.nonEmpty) { allErrors += s"newlines.source=${newlines.source} and [" errors.foreach(x => allErrors += "\t" + x)