From 48aba2f0c40662186ff5d49dcca44ce563b365fd Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Sat, 28 Sep 2024 11:30:40 +0200 Subject: chore: Lints --- cmd/cvet/check_command.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd/cvet') diff --git a/cmd/cvet/check_command.go b/cmd/cvet/check_command.go index 15f17f5..a2fc11a 100644 --- a/cmd/cvet/check_command.go +++ b/cmd/cvet/check_command.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "go/ast" "go/token" "strings" @@ -37,7 +36,7 @@ func loggerCommandKeyValueArgFinder(pass *analysis.Pass, commandName string) fun value := secondArg.Value[1 : len(secondArg.Value)-1] if value != commandName { - pass.Reportf(arg.Pos(), fmt.Sprintf("logger command name must be function name %s, but found %s", commandName, value)) + pass.Reportf(arg.Pos(), "logger command name must be function name %s, but found %s", commandName, value) return true } return true -- cgit v1.3