Skip to content

Commit

Permalink
Fix go-staticcheck failures (ST1005)
Browse files Browse the repository at this point in the history
Fix to example code, which fails static checks related to acceptable formats of error strings if used.
  • Loading branch information
mjmaisey authored and sagikazarmark committed Jun 16, 2022
1 parent 2b83d46 commit b1b8b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
```

Expand Down

0 comments on commit b1b8b3d

Please sign in to comment.