FIR LC: remove unnecessary bail-out in annotation util

There is another place below that handles the case
where no explicit annotations are bound, and there
unknwon nullability will be handled too.
This commit is contained in:
Jinseong Jeon
2022-05-20 17:11:54 -07:00
committed by Ilya Kirillov
parent 58c2433bdd
commit d196050d9f
@@ -93,8 +93,6 @@ internal fun KtAnnotatedSymbol.computeAnnotations(
includeAnnotationsWithoutSite: Boolean = true
): List<PsiAnnotation> {
if (nullability == NullabilityType.Unknown && annotations.isEmpty()) return emptyList()
val nullabilityAnnotation = when (nullability) {
NullabilityType.NotNull -> NotNull::class.java
NullabilityType.Nullable -> Nullable::class.java