Skip to content

Commit

Permalink
avoid returns in returns
Browse files Browse the repository at this point in the history
  • Loading branch information
SirYwell committed May 23, 2024
1 parent fcac568 commit 154dfc5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main/kotlin/de/sirywell/methodhandleplugin/type/Type.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,8 @@ data class DirectType(val psiType: PsiType) : Type {
return when (other) {
is BotType -> this
is TopType -> other
is DirectType -> {
if (other.psiType == psiType) {
return this
} else {
return TopType
}
}
is DirectType -> if (other.psiType == psiType) this else TopType

}
}

Expand Down

0 comments on commit 154dfc5

Please sign in to comment.