add continue in err != nil

This commit is contained in:
Alan.sung 2023-08-23 16:16:38 +08:00
parent 26cde5d57c
commit f8ae408fad

View File

@ -171,6 +171,7 @@ func toGlobalOrders(orderDetails []okexapi.OrderDetails) ([]types.Order, error)
o, err2 := toGlobalOrder(&orderDetail)
if err2 != nil {
err = multierr.Append(err, err2)
continue
}
orders = append(orders, *o)
}