mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
13 lines
165 B
Go
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
|
|
}
|
|
}
|