mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-25 07:26:48 +00:00
Migrate from gometalinter.v2 to golangci-lint (#249)
* Migrate from gometalinter.v2 to golangci-lint
This commit is contained in:
@@ -18,7 +18,7 @@ type Order struct {
|
||||
}
|
||||
|
||||
// NewOrder creates a new order and returns a an orderID
|
||||
func NewOrder(Exchange string, amount, price float64) int {
|
||||
func NewOrder(exchangeName string, amount, price float64) int {
|
||||
order := &Order{}
|
||||
if len(Orders) == 0 {
|
||||
order.OrderID = 0
|
||||
@@ -26,7 +26,7 @@ func NewOrder(Exchange string, amount, price float64) int {
|
||||
order.OrderID = len(Orders)
|
||||
}
|
||||
|
||||
order.Exchange = Exchange
|
||||
order.Exchange = exchangeName
|
||||
order.Amount = amount
|
||||
order.Price = price
|
||||
Orders = append(Orders, order)
|
||||
|
||||
Reference in New Issue
Block a user