UnnecessaryVariableInspection: do not show dialogs #KT-22989 Fixed
This commit is contained in:
@@ -56,7 +56,7 @@ class UnnecessaryVariableInspection : AbstractApplicabilityBasedInspection<KtPro
|
|||||||
|
|
||||||
override fun applyTo(element: PsiElement, project: Project, editor: Editor?) {
|
override fun applyTo(element: PsiElement, project: Project, editor: Editor?) {
|
||||||
val property = element.getParentOfType<KtProperty>(strict = false) ?: return
|
val property = element.getParentOfType<KtProperty>(strict = false) ?: return
|
||||||
KotlinInlineValHandler().inlineElement(project, editor, property)
|
KotlinInlineValHandler(withPrompt = false).inlineElement(project, editor, property)
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|||||||
Reference in New Issue
Block a user