mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +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...)
|
||||
if err2 != nil {
|
||||
werr = multierr.Append(werr, err2)
|
||||
} else if err2 == nil {
|
||||
} else {
|
||||
return createdOrders, nil, nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user