Skip to content

Commit b1b8b3d

Browse files
mjmaiseysagikazarmark
authored andcommitted
Fix go-staticcheck failures (ST1005)
Fix to example code, which fails static checks related to acceptable formats of error strings if used.
1 parent 2b83d46 commit b1b8b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

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

0 commit comments

Comments
 (0)