esimonov / ifshort

Go linter for checking that your code uses short syntax for if-statements whenever possible.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

false negative, when conversion in a condition

gucio321 opened this issue · comments

commented

Hi,
linter returns false negative on a following code:

code
package main

import "fmt"

func main() {
        i := 2
        if int(i) != 2 {
                fmt.Println("i != 2")
        }
}