mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 15:10:49 +00:00
Engine/ExchangeManager: Return error for method GetExchangeByName (#760)
* engine: Add error returns * engine: after merge fixes * engine: remove interface * linter: fix shadow declarations * engine: fix tests * niterinos: fixed * GLORIOUS NITS!
This commit is contained in:
@@ -234,7 +234,8 @@ func (m *eventManager) isValidEvent(exchange, item string, condition EventCondit
|
||||
|
||||
// isValidExchange validates the exchange
|
||||
func (m *eventManager) isValidExchange(exchangeName string) bool {
|
||||
return m.exchangeManager.GetExchangeByName(exchangeName) != nil
|
||||
_, err := m.exchangeManager.GetExchangeByName(exchangeName)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
// isValidCondition validates passed in condition
|
||||
|
||||
Reference in New Issue
Block a user