fix define build config checking

This commit is contained in:
c9s 2021-01-23 01:06:56 +08:00
parent 2da5fa2e92
commit d0fc161ae7

View File

@ -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 {