Convert lambda to reference: minor cleanup

This commit is contained in:
Mikhail Glukhikh
2017-12-15 13:37:00 +03:00
parent 0071ca64c7
commit df4bf73033
@@ -77,7 +77,7 @@ open class ConvertLambdaToReferenceIntention(text: String) :
// No references to Java synthetic properties
if (calleeDescriptor is SyntheticJavaPropertyDescriptor) return false
// No suspend functions
if ((calleeDescriptor as? FunctionDescriptor)?.isSuspend ?: false) return false
if ((calleeDescriptor as? FunctionDescriptor)?.isSuspend == true) return false
val descriptorHasReceiver = with(calleeDescriptor) {
// No references to both member / extension