Code formatting and warning fixing.

This commit is contained in:
2024-12-01 17:36:23 +01:00
parent 9f8d966b7a
commit dafd2526d1
93 changed files with 739 additions and 823 deletions

View File

@@ -63,8 +63,7 @@ public class Day01 : IDay
int accumulator = 0;
foreach (string input in inputs)
{
int intInput;
if (int.TryParse(input.Substring(1), out intInput))
if (int.TryParse(input.Substring(1), out int intInput))
{
if (input[0] == '-')
{
@@ -90,8 +89,7 @@ public class Day01 : IDay
foreach (string input in inputs)
{
accumulatorHistory.Add(accumulator);
int intInput;
if (int.TryParse(input.Substring(1), out intInput))
if (int.TryParse(input.Substring(1), out int intInput))
{
if (input[0] == '-')
{