From 045513234faf97f890bb9689780dc041aa6e4c47 Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Mon, 31 Jul 2023 10:03:18 +0200 Subject: [PATCH] Use Printf instead of Println (#318) Testing in Fedora reports: ./root.go:58:4: (*github.com/fatih/color.Color).Println call has possible Printf formatting directive %s --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 0433ec1..fd367a1 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -55,7 +55,7 @@ func initConfig() { viper.SetConfigFile(cfgFile) viper.AutomaticEnv() if viper.ConfigFileUsed() == "" { - colors.Error.Println("cannot read config file %s\n", cfgFile) + colors.Error.Printf("cannot read config file %s\n", cfgFile) os.Exit(1) } } else {