trade: use assignment instead of append

This commit is contained in:
c9s 2022-01-07 00:21:14 +08:00
parent 41574a2390
commit 01c7429758

View File

@ -176,9 +176,9 @@ func (trade Trade) SlackAttachment() slack.Attachment {
func (trade Trade) Liquidity() (o string) {
if trade.IsMaker {
o += "MAKER"
o = "MAKER"
} else {
o += "TAKER"
o = "TAKER"
}
return o