Skip to content

Commit

Permalink
remove psi from SpacingAroundDoubleColonRule
Browse files Browse the repository at this point in the history
  • Loading branch information
mgroth0 committed Dec 10, 2024
1 parent 7e2f282 commit bd1596b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class SpacingAroundDoubleColonRule : StandardRule("double-colon-spacing")
// String::length, ::isOdd
if (node.treePrev == null) { // compose(length, ::isOdd), val predicate = ::isOdd
removeSingleWhiteSpace = true
!prevLeaf.textContains('\n') && prevLeaf.psi.textLength > 1
!prevLeaf.textContains('\n') && prevLeaf.textLength > 1
} else { // String::length, List<String>::isEmpty
!prevLeaf.textContains('\n')
}
Expand Down

0 comments on commit bd1596b

Please # to comment.