1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-08-31 21:08:14 +02:00

internal/config: skip creating a Config struct with default values. those should be set by flags or viper in the builder

This commit is contained in:
Henrik Hautakoski 2024-02-18 16:11:32 +01:00
parent e54a4fa929
commit 69a36e016c
3 changed files with 1 additions and 64 deletions

View file

@ -81,7 +81,7 @@ func (b *Builder) Build() (*Config, error) {
return nil, errors.New("Config not set")
}
conf := New()
conf := Config{}
v := viper.New()
v.SetConfigType("yaml")