Skip to content

Commit

Permalink
Do not use extra dup on error class.
Browse files Browse the repository at this point in the history
  • Loading branch information
nashby committed Oct 1, 2022
1 parent 4c10d27 commit 35d5057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simple_form/wrappers/many.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def html_options(options)

def html_classes(input, options)
css = @defaults[:class].dup
css << @defaults[:error_class].dup { input.has_errors? }
css << @defaults[:error_class] if input.has_errors?
css.compact
end
end
Expand Down

0 comments on commit 35d5057

Please sign in to comment.