We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4945fde commit 2a0e5deCopy full SHA for 2a0e5de
.gitignore
tests/main.go
@@ -27,12 +27,7 @@ func testCase() string {
27
case "moo":
28
return ""
29
}
30
-
31
- test2 := "moo" + fmt.Sprintf("%d", testInt())
32
- if test2 > "foo" {
33
- test2 += "foo"
34
- }
35
- return "foo" + test2
+ return "foo"
36
37
38
func testInt() int {
visitor.go
@@ -62,6 +62,10 @@ func (v *treeVisitor) Visit(node ast.Node) ast.Visitor {
62
63
// if foo == "moo"
64
case *ast.BinaryExpr:
65
+ if t.Op != token.EQL && t.Op != token.NEQ {
66
+ return v
67
+ }
68
+
69
var lit *ast.BasicLit
70
var ok bool
71
0 commit comments