Remove unnecessary breaks

I forgot that Go doesn't require these.
This commit is contained in:
2022-06-07 20:41:41 -05:00
parent 8cd4994300
commit e8e9eeee02

View File

@ -38,7 +38,6 @@ func RunIntcodeProgram(program IntcodeProgram) {
program[param3] = program[param1] + program[param2]
instructionPointer += 4
break
case opMul:
param1 := program[instructionPointer+1]
param2 := program[instructionPointer+2]
@ -46,10 +45,8 @@ func RunIntcodeProgram(program IntcodeProgram) {
program[param3] = program[param1] * program[param2]
instructionPointer += 4
break
case opEnd:
instructionPointer = len(program)
break
}
}
}