Remove unnecessary breaks
I forgot that Go doesn't require these.
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user