提交 791f5891 编写于 作者: M Mikhail Glukhikh

SymbolTable: Rewrite nasty code with if without else in elvis RHS

上级 4bc630d8
......@@ -192,9 +192,10 @@ class SymbolTable(
@OptIn(ObsoleteDescriptorBasedAPI::class)
override fun set(s: S) {
s.signature?.let {
idSigToSymbol[it] = s
} ?: if (s.hasDescriptor) {
val signature = s.signature
if (signature != null) {
idSigToSymbol[signature] = s
} else if (s.hasDescriptor) {
descriptorToSymbol[s.descriptor] = s
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册