Skip to content

Commit

Permalink
Remove extraneous explicit return
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Feb 20, 2023
1 parent f46628b commit 921ce9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/simple_form/form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,8 @@ def mapping_override(klass)

def attempt_mapping(mapping, at)
return if SimpleForm.inputs_discovery == false && at == Object
return at.const_get(mapping) if at.const_defined?(mapping)

at.const_get(mapping) if at.const_defined?(mapping)
end

def attempt_mapping_with_custom_namespace(input_name)
Expand Down

0 comments on commit 921ce9c

Please sign in to comment.