mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
fix define build config checking
This commit is contained in:
parent
2da5fa2e92
commit
d0fc161ae7
|
@ -223,7 +223,6 @@ func Load(configFile string, loadStrategies bool) (*Config, error) {
|
||||||
|
|
||||||
// for backward compatible
|
// for backward compatible
|
||||||
if config.Build == nil {
|
if config.Build == nil {
|
||||||
if len(config.Imports) > 0 {
|
|
||||||
config.Build = &BuildConfig{
|
config.Build = &BuildConfig{
|
||||||
BuildDir: "build",
|
BuildDir: "build",
|
||||||
Imports: config.Imports,
|
Imports: config.Imports,
|
||||||
|
@ -233,7 +232,6 @@ func Load(configFile string, loadStrategies bool) (*Config, error) {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stash, err := loadStash(content)
|
stash, err := loadStash(content)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user