mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fix: sync can be nil
This commit is contained in:
parent
0b39bec589
commit
fa2eb87268
|
@ -623,7 +623,7 @@ func (environ *Environment) Sync(ctx context.Context, userConfig ...*Config) err
|
|||
return err
|
||||
}
|
||||
|
||||
if len(userConfig) == 0 {
|
||||
if len(userConfig) == 0 || userConfig[0].Sync == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user