mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
tri: fix lint issue
This commit is contained in:
parent
2abd84aec9
commit
3bd821261f
|
@ -1,8 +1,6 @@
|
|||
package tri
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/slack-go/slack"
|
||||
|
||||
"github.com/c9s/bbgo/pkg/fixedpoint"
|
||||
|
@ -16,7 +14,7 @@ type Profit struct {
|
|||
}
|
||||
|
||||
func (p *Profit) PlainText() string {
|
||||
var title = fmt.Sprintf("Arbitrage Profit ")
|
||||
var title = "Arbitrage Profit "
|
||||
title += style.PnLEmojiSimple(p.Profit) + " "
|
||||
title += style.PnLSignString(p.Profit) + " " + p.Asset
|
||||
|
||||
|
@ -28,7 +26,7 @@ func (p *Profit) PlainText() string {
|
|||
|
||||
func (p *Profit) SlackAttachment() slack.Attachment {
|
||||
var color = style.PnLColor(p.Profit)
|
||||
var title = fmt.Sprintf("Triangular PnL ")
|
||||
var title = "Triangular PnL "
|
||||
title += style.PnLEmojiSimple(p.Profit) + " "
|
||||
title += style.PnLSignString(p.Profit) + " " + p.Asset
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user