From e8e9eeee023fb11a1d9653856ef68118639bf1f1 Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 7 Jun 2022 20:41:41 -0500 Subject: [PATCH] Remove unnecessary breaks I forgot that Go doesn't require these. --- utilities/intcode.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/utilities/intcode.go b/utilities/intcode.go index f162a7f..65f70cd 100644 --- a/utilities/intcode.go +++ b/utilities/intcode.go @@ -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 } } }