Skip to content

Commit

Permalink
Small nits
Browse files Browse the repository at this point in the history
  • Loading branch information
cranktakular committed Dec 3, 2024
1 parent ff6ce5f commit 19fbf09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion exchanges/coinbasepro/coinbasepro.go
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,8 @@ func (c *CoinbasePro) SendAuthenticatedHTTPRequest(ctx context.Context, ep excha
return nil, err
}
}
jwt, _, err := c.GetJWT(ctx, method+" "+endpoint[8:]+path)
var jwt string
jwt, _, err = c.GetJWT(ctx, method+" "+endpoint[8:]+path)
if err != nil {
return nil, err
}
Expand Down
7 changes: 2 additions & 5 deletions exchanges/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ const (

// Public Errors
var (
// ErrExchangeNameIsEmpty is returned when the exchange name is empty
ErrExchangeNameIsEmpty = errors.New("exchange name is empty")
// ErrSettingProxyAddress is returned when setting a proxy address fails
ErrSettingProxyAddress = errors.New("setting proxy address error")
// ErrEndpointPathNotFound is returned when an endpoint path is not found for a particular key
ErrExchangeNameIsEmpty = errors.New("exchange name is empty")
ErrSettingProxyAddress = errors.New("setting proxy address error")
ErrEndpointPathNotFound = errors.New("no endpoint path found for the given key")
ErrSymbolCannotBeMatched = errors.New("symbol cannot be matched")
)
Expand Down

0 comments on commit 19fbf09

Please sign in to comment.