diff --git a/lib/day3.ex b/lib/day3.ex index befc7ab..315c3ae 100644 --- a/lib/day3.ex +++ b/lib/day3.ex @@ -13,8 +13,7 @@ defmodule Day3 do end defp to_priority(c) do - u = if is_nil(c) do 0 else if c < 97 do c - 38 else c - 96 end end - u + if is_nil(c) do 0 else if c < 97 do c - 38 else c - 96 end end end def execute(line, state) do