mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 07:26:47 +00:00
linter: Enable gofumpt and run against codebase (#1848)
* linter: Enable gofumpt and run against codebase * Address shazbert's nits * gofumpt: Fix issues after rebase
This commit is contained in:
@@ -1193,7 +1193,8 @@ func TestGetFuturesPositionsForExchange(t *testing.T) {
|
||||
Pair: cp,
|
||||
Side: order.Buy,
|
||||
Amount: 1,
|
||||
Price: 1})
|
||||
Price: 1,
|
||||
})
|
||||
if !errors.Is(err, nil) {
|
||||
t.Errorf("received '%v', expected '%v'", err, nil)
|
||||
}
|
||||
@@ -1240,7 +1241,8 @@ func TestClearFuturesPositionsForExchange(t *testing.T) {
|
||||
Pair: cp,
|
||||
Side: order.Buy,
|
||||
Amount: 1,
|
||||
Price: 1})
|
||||
Price: 1,
|
||||
})
|
||||
if !errors.Is(err, nil) {
|
||||
t.Errorf("received '%v', expected '%v'", err, nil)
|
||||
}
|
||||
@@ -1291,7 +1293,8 @@ func TestUpdateOpenPositionUnrealisedPNL(t *testing.T) {
|
||||
Pair: cp,
|
||||
Side: order.Buy,
|
||||
Amount: 1,
|
||||
Price: 1})
|
||||
Price: 1,
|
||||
})
|
||||
if !errors.Is(err, nil) {
|
||||
t.Errorf("received '%v', expected '%v'", err, nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user