Skip to content

Commit

Permalink
Use Printf instead of Println (cupcakearmy#318)
Browse files Browse the repository at this point in the history
Testing in Fedora reports:

./root.go:58:4: (*github.com/fatih/color.Color).Println call has
possible Printf formatting directive %s
  • Loading branch information
mikelolasagasti committed Jul 31, 2023
1 parent 78b0db5 commit 0455132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0455132

Please sign in to comment.