mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
bbgo: just use else condition
This commit is contained in:
parent
77e31e9274
commit
0e2f69e837
|
@ -341,7 +341,7 @@ func BatchRetryPlaceOrder(ctx context.Context, exchange types.Exchange, errIdx [
|
||||||
createdOrders, errIdx, err2 = BatchPlaceOrder(ctx, exchange, orderCallback, submitOrders...)
|
createdOrders, errIdx, err2 = BatchPlaceOrder(ctx, exchange, orderCallback, submitOrders...)
|
||||||
if err2 != nil {
|
if err2 != nil {
|
||||||
werr = multierr.Append(werr, err2)
|
werr = multierr.Append(werr, err2)
|
||||||
} else if err2 == nil {
|
} else {
|
||||||
return createdOrders, nil, nil
|
return createdOrders, nil, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user