More cleanup: lift return / assignment out

This commit is contained in:
Mikhail Glukhikh
2017-07-07 13:57:36 +03:00
parent 9269de721e
commit dfe2c16bc7
116 changed files with 472 additions and 517 deletions
@@ -106,8 +106,8 @@ private fun StringBuilder.encodeForSignature(
parameter: TypeParameterDescriptor,
typeParameterNamer: (TypeParameterDescriptor) -> String
): StringBuilder {
if (projection.isStarProjection) {
return append("*")
return if (projection.isStarProjection) {
append("*")
}
else {
when (getEffectiveVariance(parameter.variance, projection.projectionKind)) {
@@ -115,7 +115,7 @@ private fun StringBuilder.encodeForSignature(
Variance.OUT_VARIANCE -> append("+")
Variance.INVARIANT -> {}
}
return encodeForSignature(projection.type, typeParameterNamer)
encodeForSignature(projection.type, typeParameterNamer)
}
}