bbgo: just use else condition

This commit is contained in:
c9s 2023-06-30 11:05:03 +08:00
parent 77e31e9274
commit 0e2f69e837
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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
}
}