mirror of
https://github.com/owncloud/ocis
synced 2026-04-30 11:37:33 +02:00
fix condition for nil pointer in common config
This commit is contained in:
@@ -25,7 +25,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 = &config.Log{}
|
||||
}
|
||||
// provide with defaults for shared tracing, since we need a valid destination address for BindEnv.
|
||||
@@ -36,7 +36,7 @@ func ParseConfig(cfg *config.Config) error {
|
||||
Endpoint: cfg.Commons.Tracing.Endpoint,
|
||||
Collector: cfg.Commons.Tracing.Collector,
|
||||
}
|
||||
} else if cfg.Tracing == nil && cfg.Commons == nil {
|
||||
} else if cfg.Tracing == nil {
|
||||
cfg.Tracing = &config.Tracing{}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user