mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +00:00
check if err is nil
This commit is contained in:
parent
ddc33f633f
commit
0bdfd0f04b
|
@ -37,7 +37,9 @@ func (s *SyncService) SyncOrders(ctx context.Context, exchange types.Exchange, s
|
||||||
return ctx.Err()
|
return ctx.Err()
|
||||||
|
|
||||||
case err := <-errC:
|
case err := <-errC:
|
||||||
return err
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user