*: fix lint

This commit is contained in:
Edwin 2023-09-01 17:51:09 +08:00
parent 50bfd8ee0e
commit 412d0e0558
5 changed files with 7 additions and 7 deletions

View File

@ -100,4 +100,4 @@ func Test_loadMarketsFromMem(t *testing.T) {
}
globalMarketMemCache = newMarketMemCache() // reset the global cache
}
}

View File

@ -524,7 +524,7 @@ func TestTradeEvent_toGlobalTrade(t *testing.T) {
OrderId: fmt.Sprintf("%d", expTrade.OrderID),
OrderLinkId: "1691419101980",
Category: "spot",
Symbol: fmt.Sprintf("%s", expTrade.Symbol),
Symbol: expTrade.Symbol,
ExecId: fmt.Sprintf("%d", expTrade.ID),
ExecPrice: expTrade.Price,
ExecQty: expTrade.Quantity,

View File

@ -14,7 +14,7 @@ func TestGetMigrationsMap(t *testing.T) {
func TestMergeMigrationsMap(t *testing.T) {
MergeMigrationsMap(map[int64]*rockhopper.Migration{
2: &rockhopper.Migration{},
3: &rockhopper.Migration{},
2: {},
3: {},
})
}

View File

@ -14,7 +14,7 @@ func TestGetMigrationsMap(t *testing.T) {
func TestMergeMigrationsMap(t *testing.T) {
MergeMigrationsMap(map[int64]*rockhopper.Migration{
2: &rockhopper.Migration{},
3: &rockhopper.Migration{},
2: {},
3: {},
})
}

View File

@ -484,7 +484,7 @@ func (s *Strategy) executePath(ctx context.Context, session *bbgo.ExchangeSessio
}
func notifyUsdPnL(profit fixedpoint.Value) {
var title = fmt.Sprintf("Triangular Sum PnL ~= ")
var title = "Triangular Sum PnL ~= "
title += style.PnLEmojiSimple(profit) + " "
title += style.PnLSignString(profit) + " USD"
bbgo.Notify(title)