check if err is nil

This commit is contained in:
c9s 2021-01-18 21:59:02 +08:00
parent ddc33f633f
commit 0bdfd0f04b

View File

@ -37,7 +37,9 @@ func (s *SyncService) SyncOrders(ctx context.Context, exchange types.Exchange, s
return ctx.Err()
case err := <-errC:
if err != nil {
return err
}
default: