We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22d773d commit 159dba6Copy full SHA for 159dba6
config/viper.go
@@ -135,12 +135,6 @@ func Init(ctx context.Context, configFile ...string) error {
135
viper.SetDefault(key, value)
136
}
137
138
- if err := viper.SafeWriteConfigAs("config.toml"); err != nil {
139
- if _, ok := err.(viper.ConfigFileAlreadyExistsError); !ok {
140
- return fmt.Errorf("error saving default config: %w", err)
141
- }
142
143
-
144
if err := viper.ReadInConfig(); err != nil {
145
fmt.Println("Error reading config file, ", err)
146
return err
0 commit comments