check if err is nil

This commit is contained in:
c9s 2021-01-18 21:57:57 +08:00
parent 2122bc9b15
commit ddc33f633f

View File

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