SymbolTable: Rewrite nasty code with if without else in elvis RHS
This commit is contained in:
@@ -192,9 +192,10 @@ class SymbolTable(
|
|||||||
|
|
||||||
@OptIn(ObsoleteDescriptorBasedAPI::class)
|
@OptIn(ObsoleteDescriptorBasedAPI::class)
|
||||||
override fun set(s: S) {
|
override fun set(s: S) {
|
||||||
s.signature?.let {
|
val signature = s.signature
|
||||||
idSigToSymbol[it] = s
|
if (signature != null) {
|
||||||
} ?: if (s.hasDescriptor) {
|
idSigToSymbol[signature] = s
|
||||||
|
} else if (s.hasDescriptor) {
|
||||||
descriptorToSymbol[s.descriptor] = s
|
descriptorToSymbol[s.descriptor] = s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user