Skip to content

Commit 921ce9c

Browse files
Remove extraneous explicit return
1 parent f46628b commit 921ce9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/simple_form/form_builder.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,8 @@ def mapping_override(klass)
672672

673673
def attempt_mapping(mapping, at)
674674
return if SimpleForm.inputs_discovery == false && at == Object
675-
return at.const_get(mapping) if at.const_defined?(mapping)
675+
676+
at.const_get(mapping) if at.const_defined?(mapping)
676677
end
677678

678679
def attempt_mapping_with_custom_namespace(input_name)

0 commit comments

Comments
 (0)