mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +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()
|
||||
|
||||
case err := <-errC:
|
||||
return err
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
default:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user