reduced Cyclomatic complexity
This commit is contained in:
parent
a15572c705
commit
9423d831f6
@ -611,10 +611,8 @@ class RPC:
|
|||||||
'position': 0,
|
'position': 0,
|
||||||
'is_position': False,
|
'is_position': False,
|
||||||
}
|
}
|
||||||
if coin == stake_currency:
|
currencies.insert(
|
||||||
currencies.insert(0, currency)
|
0, currency) if coin == stake_currency else currencies.append(currency)
|
||||||
else:
|
|
||||||
currencies.append(currency)
|
|
||||||
|
|
||||||
symbol: str
|
symbol: str
|
||||||
position: PositionWallet
|
position: PositionWallet
|
||||||
|
Loading…
Reference in New Issue
Block a user