Fix err check

This commit is contained in:
Adrian Gallagher
2018-01-29 17:13:26 +11:00
parent 53b80f8bd4
commit 2e1b5afd94
19 changed files with 20 additions and 20 deletions

View File

@@ -55,7 +55,7 @@ func (i *ItBit) GetTickerPrice(p pair.CurrencyPair, assetType string) (ticker.Pr
// GetOrderbookEx returns orderbook base on the currency pair
func (i *ItBit) GetOrderbookEx(p pair.CurrencyPair, assetType string) (orderbook.Base, error) {
ob, err := orderbook.GetOrderbook(i.GetName(), p, assetType)
if err == nil {
if err != nil {
return i.UpdateOrderbook(p, assetType)
}
return ob, nil