Files
codeql/go/ql/src/RedundantCode/DuplicateCondition.go
2022-05-20 10:07:19 -07:00

12 lines
162 B
Go

package main
func controller(msg string) {
if msg == "start" {
start()
} else if msg == "start" {
stop()
} else {
panic("Message not understood.")
}
}