Skip to content

Commit

Permalink
fix unused variable warnings (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrevits authored Nov 2, 2022
1 parent e33b703 commit 87a9c49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/earmark/options.ex
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,15 @@ defmodule Earmark.Options do
options
end

defp _check_options!(%__MODULE__{line: line, footnote_offset: fno}) when is_number(line) do
defp _check_options!(%__MODULE__{line: line}) when is_number(line) do
{:error, [{:error, 0, "footnote_offset option must be numeric"}]}
end

defp _check_options!(%__MODULE__{line: line, footnote_offset: fno}) when is_number(fno) do
defp _check_options!(%__MODULE__{footnote_offset: fno}) when is_number(fno) do
{:error, [{:error, 0, "line option must be numeric"}]}
end

defp _check_options!(%__MODULE__{line: line, footnote_offset: fno}) do
defp _check_options!(%__MODULE__{}) do
{:error,
[
{:error, 0, "footnote_offset option must be numeric"},
Expand Down

0 comments on commit 87a9c49

Please sign in to comment.