Skip to content

Commit 0b614ed

Browse files
Remove superflous unless (#5)
1 parent 1fdbdd9 commit 0b614ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/phoenix_html_helpers/form_data.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defimpl Phoenix.HTML.FormData, for: [Plug.Conn, Atom] do
44
{errors, opts} = Keyword.pop(opts, :errors, [])
55
id = Keyword.get(opts, :id) || name
66

7-
unless is_binary(id) or is_nil(id) do
7+
if not is_binary(id) do
88
raise ArgumentError, ":id option in form_for must be a binary/string, got: #{inspect(id)}"
99
end
1010

0 commit comments

Comments
 (0)