Code cleanup: unnecessary local variable applied
This commit is contained in:
@@ -90,7 +90,7 @@ object LambdaItems {
|
||||
explicitParameterTypes: Boolean
|
||||
): LookupElement {
|
||||
val lookupString = LambdaSignatureTemplates.lambdaPresentation(functionType, signaturePresentation)
|
||||
val lookupElement = LookupElementBuilder.create(lookupString)
|
||||
return LookupElementBuilder.create(lookupString)
|
||||
.withInsertHandler({ context, lookupElement ->
|
||||
val offset = context.startOffset
|
||||
val placeholder = "{}"
|
||||
@@ -101,6 +101,5 @@ object LambdaItems {
|
||||
.suppressAutoInsertion()
|
||||
.assignSmartCompletionPriority(SmartCompletionItemPriority.LAMBDA)
|
||||
.addTailAndNameSimilarity(functionExpectedInfos.filter { it.fuzzyType?.type == functionType })
|
||||
return lookupElement
|
||||
}
|
||||
}
|
||||
|
||||
+1
-2
@@ -73,7 +73,7 @@ object LambdaSignatureItems {
|
||||
SmartCompletionItemPriority.LAMBDA_SIGNATURE_EXPLICIT_PARAMETER_TYPES
|
||||
else
|
||||
SmartCompletionItemPriority.LAMBDA_SIGNATURE
|
||||
val lookupElement = LookupElementBuilder.create(lookupString)
|
||||
return LookupElementBuilder.create(lookupString)
|
||||
.withInsertHandler({ context, lookupElement ->
|
||||
val offset = context.startOffset
|
||||
val placeholder = "{}"
|
||||
@@ -82,6 +82,5 @@ object LambdaSignatureItems {
|
||||
})
|
||||
.suppressAutoInsertion()
|
||||
.assignSmartCompletionPriority(priority)
|
||||
return lookupElement
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user