about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--aoc2021/Day08.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/aoc2021/Day08.cs b/aoc2021/Day08.cs
index 86e764b..27931eb 100644
--- a/aoc2021/Day08.cs
+++ b/aoc2021/Day08.cs
@@ -5,14 +5,15 @@
 /// </summary>
 public sealed class Day08 : Day
 {
-    private static readonly List<char[]> PossibleMappings = "abcdefg".ToCharArray().Permute().Select(m => m.ToArray()).ToList();
+    private static readonly List<char[]> PossibleMappings =
+        "abcdefg".ToCharArray().Permute().Select(m => m.ToArray()).ToList();
+    
     public Day08() : base(8, "Seven Segment Search")
     {
     }
 
-    private static int MatchDigit(string lit)
-    {
-        return lit switch
+    private static int MatchDigit(string lit) =>
+        lit switch
         {
             "1110111" => 0,
             "0010010" => 1,
@@ -26,7 +27,6 @@ public sealed class Day08 : Day
             "1111011" => 9,
             _ => -1
         };
-    }
 
     private static int Decode(string line)
     {