Skip to content

Commit

Permalink
bugfix/indentation-of-comments(#553)
Browse files Browse the repository at this point in the history
### What's done:
  * Fixed bugs
  • Loading branch information
aktsay6 committed Nov 24, 2020
1 parent 45b3b52 commit 13b3dc0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ internal class DotCallChecker(config: IndentationConfig) : CustomIndentationChec
private fun ASTNode.isDotBeforeCallOrReference() = elementType.let { it == DOT || it == SAFE_ACCESS } &&
treeNext.elementType.let { it == CALL_EXPRESSION || it == REFERENCE_EXPRESSION }

@Suppress("ComplexMethod")
override fun checkNode(whiteSpace: PsiWhiteSpace, indentError: IndentationError): CheckResult? {
whiteSpace.nextSibling.node
.takeIf { nextNode ->
Expand Down

0 comments on commit 13b3dc0

Please sign in to comment.