Programming Phoenix LiveView B7 P82

In the # this is a bad idea code there is a bug in addition to the use of pipes.

defp validate_code(code) do
  {:ok, code} = Validator.validate_code(code)
end

Even when the above will results in {:ok, code} there will still be a problem as that tuple will be fed into the subsequent function that only expects code not {:ok, code} for the first parameter.