1
0
mirror of https://github.com/mgechev/revive.git synced 2025-03-25 21:29:16 +02:00

Remove debugging output (#672)

Noticed during migration from our heavily modified "go-lint" to "revive" that there is an additional line printed. I am unsure that the convention for this project is on this, we do not allow adding such a call.
This commit is contained in:
Markus Zimmermann 2022-04-07 22:05:51 +02:00 committed by GitHub
parent 87f8e2920c
commit 23828cc39d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,6 @@ func (w *lintRedefinesBuiltinID) Visit(node ast.Node) ast.Visitor {
if ok, bt := w.isBuiltIn(id.Name); ok {
var msg string
println(bt, id.Name)
switch bt {
case "constant or variable":
if n.Tok == token.DEFINE {