File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -134,9 +134,9 @@ You can handle the specific case where no config file is found like this:
134134var fileLookupError viper.fileLookupError
135135if err := viper.ReadInConfig (); err != nil {
136136 if errors.As (err, &fileLookupError) {
137- // Indicates an explicitly set config file is not found, such as with
138- // using `viper.SetConfigFile`, or that no config file was found in
139- // any search path, such as when using `viper.AddConfigPath`.
137+ // Indicates an explicitly set config file is not found ( such as with
138+ // using `viper.SetConfigFile`) or that no config file was found in
139+ // any search path ( such as when using `viper.AddConfigPath`)
140140 } else {
141141 // Config file was found but another error was produced
142142 }
You can’t perform that action at this time.
0 commit comments