All your codebase are belong to us.
This commit is contained in:
parent
86f443ef73
commit
2d43e7e33b
|
@ -12,10 +12,9 @@ func FizzBuzz() {
|
|||
}
|
||||
|
||||
func fizzOrBuzz(number int) string {
|
||||
three := handle3(number)
|
||||
five := handle5(number)
|
||||
if three != "" || five != "" {
|
||||
return three + five
|
||||
out := handle3(number) + handle5(number)
|
||||
if out != "" {
|
||||
return out
|
||||
}
|
||||
|
||||
return strconv.Itoa(number)
|
||||
|
|
Loading…
Reference in New Issue