Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sixFingers committed Aug 24, 2016
1 parent e777372 commit 056aacb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/views/error_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule Phamello.ErrorHelpers do
end

def error_tag(form, field, text) do
if error = form.errors[field] do
if _error = form.errors[field] do
content_tag :span, text, class: "help-block"
end
end
Expand All @@ -25,7 +25,7 @@ defmodule Phamello.ErrorHelpers do
label_with_error(form, field, humanize(field))

def label_with_error(form, field, text) do
if error = form.errors[field] do
if _error = form.errors[field] do
label form, field, text, class: "error"
else
label form, field, text
Expand Down

0 comments on commit 056aacb

Please sign in to comment.