mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
cmd: fix build nil check
This commit is contained in:
parent
3cb3cd79fa
commit
cc3e9f42aa
|
@ -253,7 +253,7 @@ func run(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
// for wrapper binary, we can just run the strategies
|
||||
if bbgo.IsWrapperBinary || len(userConfig.Build.Imports) == 0 || noCompile {
|
||||
if bbgo.IsWrapperBinary || (userConfig.Build != nil && len(userConfig.Build.Imports) == 0) || noCompile {
|
||||
userConfig, err = bbgo.Load(configFile, true)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue
Block a user