From af970447acb7fca5e3db3984dfc8262b23dcd6f1 Mon Sep 17 00:00:00 2001 From: Steph Date: Thu, 1 Dec 2022 21:02:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20aaaaaaaaaaaa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2020/8/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2020/8/Program.cs b/2020/8/Program.cs index 15dd4a2..1ed0130 100644 --- a/2020/8/Program.cs +++ b/2020/8/Program.cs @@ -48,12 +48,12 @@ static void PartTwo() { var clone = new List(lines); clone[i] = instruction == "jmp" ? $"nop {intval}" : $"jmp {intval}"; - + try { var result = DoTheThing(clone); Console.WriteLine($"Found that instruction {i} fixes the loop, accumilator end up being {result}."); return; - } catch (Exception e) { } + } catch { } } }