Skip to content

Commit eb7b3fe

Browse files
committed
bug fix
1 parent 27158e4 commit eb7b3fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/tang/intellij/lua/codeInsight/intention/RemoveCallParenIntention.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class RemoveCallParenIntention : BaseIntentionAction() {
3333
if (callExpr != null) {
3434
val args = callExpr.args as? LuaListArgs ?: return false
3535
val list = args.exprList
36-
if (list.isEmpty())
36+
if (list.isEmpty() || list.size > 1)
3737
return false
3838
val expr = list.first()
3939
when (expr) {

0 commit comments

Comments
 (0)