Skip to content

Commit

Permalink
fix linter issues (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagleft authored Jul 10, 2023
1 parent 80061a1 commit 775b3d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions v5_order_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (s *V5OrderService) GetOpenOrders(param V5GetOpenOrdersParam) (*V5GetOrders
var res V5GetOrdersResponse

if param.Category == "" {
return nil, fmt.Errorf("Category needed")
return nil, fmt.Errorf("category needed")
}

queryString, err := query.Values(param)
Expand All @@ -284,7 +284,7 @@ func (s *V5OrderService) GetHistoryOrders(param V5GetHistoryOrdersParam) (*V5Get
var res V5GetOrdersResponse

if param.Category == "" {
return nil, fmt.Errorf("Category needed")
return nil, fmt.Errorf("category needed")
}

queryString, err := query.Values(param)
Expand Down
4 changes: 2 additions & 2 deletions v5_position_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (s *V5PositionService) SetLeverage(param V5SetLeverageParam) (*V5SetLeverag
var res V5SetLeverageResponse

if param.Category == "" || param.Symbol == "" || param.BuyLeverage == "" || param.SellLeverage == "" {
return nil, fmt.Errorf("Category, Symbol, BuyLeverage and SellLeverage needed")
return nil, fmt.Errorf("category, Symbol, BuyLeverage and SellLeverage needed")
}

body, err := json.Marshal(param)
Expand Down Expand Up @@ -350,7 +350,7 @@ func (p V5SwitchPositionMarginModeParam) validate() error {
return fmt.Errorf("only linear and inverse are supported for category")
}
if p.Symbol == "" || p.BuyLeverage == "" || p.SellLeverage == "" {
return fmt.Errorf("Symbol, BuyLeverage and SellLeverage needed")
return fmt.Errorf("symbol, BuyLeverage and SellLeverage needed")
}
return nil
}
Expand Down

0 comments on commit 775b3d8

Please sign in to comment.