Files
codeql/go/ql/test/query-tests/RedundantCode/DuplicateCondition/tst.go
2022-05-20 10:07:19 -07:00

13 lines
165 B
Go

package main
func check(x int) bool {
return true
}
func main() {
if ok := check(42); ok {
} else if ok { // NOT OK
} else if ok := check(23); ok { // OK
}
}