Skip to content

Commit

Permalink
commentspace: Remove left-over debug line
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatseykanets committed Mar 3, 2021
1 parent c801f69 commit af0bf04
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions checks/commentspace/analysis.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package commentspace

import (
"fmt"
"strings"

"golang.org/x/tools/go/analysis"
Expand Down Expand Up @@ -46,7 +45,6 @@ func run(pass *analysis.Pass) (interface{}, error) {
}

if strings.HasPrefix(comment.Text, "//") && nlen > 2 && comment.Text[2:3] != " " {
fmt.Println(comment.Pos(), comment.End())
pass.Report(analysis.Diagnostic{
Pos: comment.Pos(), Message: "A comment should have a leading space",
SuggestedFixes: []analysis.SuggestedFix{
Expand Down

0 comments on commit af0bf04

Please sign in to comment.