diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt index cd240028b4..57f2c99485 100644 --- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt +++ b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/InlineClassesRule.kt @@ -42,8 +42,8 @@ class InlineClassesRule(private val configRule: List) : Rule("inlin private fun handleClasses(classPsi: KtClass) { // Fixme: for now we can't understand whether it extends class or interface if (hasValidProperties(classPsi) && - !classPsi.node.hasChildOfType(SUPER_TYPE_LIST) && - classPsi.node.getFirstChildWithType(MODIFIER_LIST)?.getChildren(null)?.all { it.elementType in goodModifiers } != false) { + !classPsi.node.hasChildOfType(SUPER_TYPE_LIST) && + classPsi.node.getFirstChildWithType(MODIFIER_LIST)?.getChildren(null)?.all { it.elementType in goodModifiers } != false) { INLINE_CLASS_CAN_BE_USED.warnAndFix(configRule, emitWarn, isFixMode, "class ${classPsi.name}", classPsi.node.startOffset, classPsi.node) { // Fixme: since it's an experimental feature we shouldn't do fixer }