94e3c6c8b2727698b3e31616866b1dc59b2231ce
[dotfiles/.git] / CheckYodaConditions.go
1 // Package pkg ...
2 package pkg
3
4 func fn(x string, y int) {
5         if "" == x { // want `Yoda`
6         }
7         if 0 == y { // want `Yoda`
8         }
9         if 0 > y {
10         }
11         if "" == "" {
12         }
13
14         if "" == "" || 0 == y { // want `Yoda`
15         }
16 }