From 5b7dbd5b1d5c12c47280f54c57ce101b21f32911 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:23:12 -0600 Subject: [PATCH] chore: remove comments --- 16/ReindeerMaze/Program.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/16/ReindeerMaze/Program.cs b/16/ReindeerMaze/Program.cs index 4bc4da6..be6e40e 100644 --- a/16/ReindeerMaze/Program.cs +++ b/16/ReindeerMaze/Program.cs @@ -1,19 +1,19 @@ using System.Diagnostics; -// if (args.Length is 0) -// { -// Console.WriteLine("Please provide a path to the input file."); -// return; -// } -// -// if (File.Exists(args[0]) is false) -// { -// Console.WriteLine("The provided file does not exist."); -// return; -// } +if (args.Length is 0) +{ + Console.WriteLine("Please provide a path to the input file."); + return; +} + +if (File.Exists(args[0]) is false) +{ + Console.WriteLine("The provided file does not exist."); + return; +} var isPart2 = args.Length is 2 && args[1] is "part2"; -var input = await File.ReadAllLinesAsync(Path.Combine(AppContext.BaseDirectory, "INPUT.txt")); +var input = await File.ReadAllLinesAsync(args[0]); var stopwatch = new Stopwatch(); stopwatch.Start();