fix condition for nil pointer in common config

This commit is contained in:
Willy Kloucek
2022-01-12 12:38:41 +01:00
parent 2f8d63b380
commit 6ef6d1117c
14 changed files with 26 additions and 26 deletions

View File

@@ -23,7 +23,7 @@ func ParseConfig(cfg *config.Config) error {
Color: cfg.Commons.Log.Color,
File: cfg.Commons.Log.File,
}
} else if cfg.Log == nil && cfg.Commons == nil {
} else if cfg.Log == nil {
cfg.Log = &shared.Log{}
}