Some tidying up

This commit is contained in:
Martin Frost 2015-10-03 21:45:47 +02:00
parent 81922adc70
commit 933c15a671
1 changed files with 1 additions and 3 deletions

View File

@ -42,7 +42,7 @@ defmodule Isn do
def init(parameters, _opts),
do: parameters
def matching(_library),
def matching(_),
do: Enum.zip(Stream.cycle([:type]), @isn)
def format(_),
@ -81,8 +81,6 @@ for module <- ~w(ISBN ISMN ISSN ISBN13 ISMN13 ISSN13 UPC EAN13) do
def type, do: unquote(ecto_type)
defdelegate blank?, to: Ecto.Type
def cast(nil), do: :error
def cast(isn), do: {:ok, to_string(isn)}