Skip to content

Commit

Permalink
ScalafmtConfig: remove unnecessary validity check
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Dec 31, 2024
1 parent d4efa00 commit 72ebee4
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 72ebee4

Please # to comment.