Skip to content

Commit 558c2b4

Browse files
xteraoCopilot
andauthored
Fix lambda invocation
Co-authored-by: Copilot <[email protected]>
1 parent 1a37d6f commit 558c2b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/kotlin/org/domaframework/doma/intellij/contributor/sql/provider/SqlParameterCompletionProvider.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,8 @@ class SqlParameterCompletionProvider : CompletionProvider<CompletionParameters>(
300300
parent.searchField(searchText)?.let {
301301
parentProperties = it.toTypedArray()
302302
} ?: { parentProperties = emptyArray() }
303-
parent.searchMethod(searchText)?.let {
304-
parentMethods = it.toTypedArray()
305-
} ?: { parentMethods = emptyArray() }
303+
val methods = parent.searchMethod(searchText)
304+
parentMethods = methods?.toTypedArray() ?: emptyArray()
306305
setFieldsAndMethodsCompletionResultSet(parentProperties, parentMethods, result)
307306
}
308307
}

0 commit comments

Comments
 (0)