Skip to content

Commit

Permalink
Closes #1890
Browse files Browse the repository at this point in the history
  • Loading branch information
diphtongue committed Jan 12, 2024
1 parent d011681 commit 7e675ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ class NewlinesRule(configRules: List<RulesConfig>) : DiktatRule(
val whiteSpaceNode = commaNode?.treeNext
// put super classes on separate lines
if (superClassNode.elementType in listOf(SUPER_TYPE_CALL_ENTRY, SUPER_TYPE_ENTRY) &&
commaNode != null && commaNode.text == "," && whiteSpaceNode?.elementType == WHITE_SPACE
commaNode?.text == "," && whiteSpaceNode?.elementType == WHITE_SPACE
) {
commaNode.changeWhiteSpaceOnNewline(whiteSpaceNode, commaNode)
}
Expand Down

0 comments on commit 7e675ac

Please sign in to comment.