summaryrefslogtreecommitdiff
path: root/cmd/cvet/check_command.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2024-09-28 11:30:40 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2024-09-28 11:33:24 +0200
commit48aba2f0c40662186ff5d49dcca44ce563b365fd (patch)
tree33e029b69ae899ad55b3e397f91a50c3a4147010 /cmd/cvet/check_command.go
parent2d6e6fad45057b829e84375e914e3301c4bd73ba (diff)
chore: Lintsv0.5.0
Diffstat (limited to 'cmd/cvet/check_command.go')
-rw-r--r--cmd/cvet/check_command.go3
1 files changed, 1 insertions, 2 deletions
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