Skip to content

Commit

Permalink
Fix redundant typespec
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamez committed Sep 26, 2020
1 parent bf86b2b commit ba61dac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/protox/define_message.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ defmodule Protox.DefineMessage do
defp make_default_fun(fields) do
spec =
quote do
@spec default(atom) ::
{:ok, boolean | integer | String.t() | binary | float} | {:error, atom}
@spec default(atom) :: {:ok, boolean | integer | String.t() | float} | {:error, atom}
end

match_all =
Expand Down

0 comments on commit ba61dac

Please sign in to comment.