Skip to content

Commit

Permalink
Fixes infinite loop (thrasher-corp#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
gloriousCode authored and thrasher- committed Sep 13, 2019
1 parent c7ca29a commit 3bcaa5d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions exchanges/lbank/lbank_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,10 @@ func (l *Lbank) GetOrderHistory(getOrdersRequest *exchange.GetOrdersRequest) ([]
var finalResp []exchange.OrderDetail
var resp exchange.OrderDetail
var tempCurr currency.Pairs
var x int
if len(getOrdersRequest.Currencies) == 0 {
tempCurr = l.GetEnabledCurrencies()
} else {
for x < len(getOrdersRequest.Currencies) {
tempCurr = getOrdersRequest.Currencies
}
tempCurr = getOrdersRequest.Currencies
}
for a := range tempCurr {
p := exchange.FormatExchangeCurrency(l.Name, tempCurr[a])
Expand Down

0 comments on commit 3bcaa5d

Please sign in to comment.