diff --git a/ssg/strongParser/helpers.go b/ssg/strongParser/helpers.go index eed3d54..ae7cc65 100644 --- a/ssg/strongParser/helpers.go +++ b/ssg/strongParser/helpers.go @@ -75,7 +75,7 @@ func ParseConfig(value any, filename string) error { func ParseConfigWithOption(value any, filename string, opt *ConfigParserOptions) error { p, err := Parse(filename) if err != nil { - if opt == nil && !opt.ReadEnv { + if opt == nil || !opt.ReadEnv { return err }