Convert if statement to switch

This commit is contained in:
Timothy Warren 2021-03-19 08:45:33 -04:00
parent 9de97f995b
commit b3344dbe89

View File

@ -30,9 +30,7 @@ func main() {
} }
switch { switch {
case char == 'q':
}
if char == 'q' {
fmt.Println("bye!\r") fmt.Println("bye!\r")
return return
} }