Fix go-staticcheck failures (ST1005)

Fix to example code, which fails static checks related to acceptable formats of error strings if used.
This commit is contained in:
mjmaisey 2022-06-05 19:54:16 +01:00 committed by GitHub
parent 4322cf20e9
commit e9d49d0a84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ viper.AddConfigPath("$HOME/.appname") // call multiple times to add many search
viper.AddConfigPath(".") // optionally look for config in the working directory
err := viper.ReadInConfig() // Find and read the config file
if err != nil { // Handle errors reading the config file
panic(fmt.Errorf("Fatal error config file: %w \n", err))
panic(fmt.Errorf("fatal error config file: %w", err))
}
```