Skip to content

Commit

Permalink
feature/inline-classes(#698)
Browse files Browse the repository at this point in the history
### What's done:
  * Fixed bugs
  • Loading branch information
aktsay6 committed Jan 20, 2021
1 parent 8869988 commit 91568a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class InlineClassesRule(private val configRule: List<RulesConfig>) : Rule("inlin
} else if (classPsi.getProperties().isEmpty() && classPsi.hasExplicitPrimaryConstructor()) {
return classPsi.primaryConstructorParameters.size == 1 &&
!classPsi.primaryConstructorParameters.first().node.hasChildOfType(VAR_KEYWORD) &&
classPsi.primaryConstructor?.visibilityModifierType()?.value ?: true == "public"
classPsi.primaryConstructor?.visibilityModifierType()?.value ?: "public" == "public"
}
return false
}
Expand Down

0 comments on commit 91568a2

Please sign in to comment.