-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add else to when #869
add else to when #869
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). For more information, open the CLA check for this pull request. |
Thanks! Could you sign the CLA so that we can merge it? |
@@ -235,41 +235,41 @@ internal fun ModuleClassResolver.resolveContainingClass(psiMethod: PsiMethod): C | |||
} | |||
|
|||
internal fun getInstanceForCurrentRound(node: KSNode): KSNode? { | |||
when (node.origin) { | |||
return when (node.origin) { | |||
Origin.KOTLIN_LIB, Origin.JAVA_LIB -> return null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove the return
in return null
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
thank you for telling me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
can you fix the ktlint error? |
@neetopia done. |
Thanks! I will merge once CI is finished. |
Merged, thanks for your PR! |
* add else to when * remove the return in return null (cherry picked from commit 504e184)
* add else to when * remove the return in return null (cherry picked from commit 504e184)
* add else to when * remove the return in return null (cherry picked from commit 504e184)
Hello.
I know this will be updated in Kotlin 1.6.
It seems to be a violation of this, so I will correct it and PR.
thank you.