4
0
Fork 0

Silenced warnings in lib

pull/16/head
hswick 6 years ago
parent b2929483d8
commit 4a65096370
  1. 2
      lib/exw3.ex

@ -551,7 +551,7 @@ defmodule ExW3 do
defp check_option(nil, error_atom), do: {:error, error_atom}
defp check_option([], error_atom), do: {:error, error_atom}
defp check_option([head | tail], atom) when head != nil, do: {:ok, head}
defp check_option([head | _tail], _atom) when head != nil, do: {:ok, head}
defp check_option([_head | tail], atom), do: check_option(tail, atom)
defp check_option(value, _atom), do: {:ok, value}

Loading…
Cancel
Save