Minor: Fix compilation
(cherry picked from commit 5397e11)
This commit is contained in:
@@ -181,7 +181,7 @@ class KotlinInlineValHandler : InlineActionHandler() {
|
||||
project.executeWriteCommand(RefactoringBundle.message("inline.command", name)) {
|
||||
val inlinedExpressions = chosenExpressions
|
||||
.flatMap { referenceExpression ->
|
||||
if (assignments.contains(referenceExpression.parent)) return@flatMap emptyList<KtExpression>()
|
||||
if (assignments.contains(referenceExpression!!.parent)) return@flatMap emptyList<KtExpression>()
|
||||
|
||||
val importDirective = referenceExpression.getStrictParentOfType<KtImportDirective>()
|
||||
if (importDirective != null) {
|
||||
|
||||
Reference in New Issue
Block a user