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 Márk Sági-Kazár
parent 2b83d46130
commit b1b8b3d4d4

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))
}
```