Files
codeql/ql/src/RedundantCode/DuplicateConditionGood.go
2019-11-08 12:16:26 +00:00

12 lines
165 B
Go

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