From b1b8b3d4d484989aceb420deaf55e2a702780acb Mon Sep 17 00:00:00 2001 From: mjmaisey Date: Sun, 5 Jun 2022 19:54:16 +0100 Subject: [PATCH] Fix go-staticcheck failures (ST1005) Fix to example code, which fails static checks related to acceptable formats of error strings if used. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c14e8927a..e4f18d11a 100644 --- a/README.md +++ b/README.md @@ -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)) } ```