Skip to content

Commit

Permalink
Remove redundant return
Browse files Browse the repository at this point in the history
  • Loading branch information
marlena-b committed Feb 26, 2025
1 parent 94ad7ef commit 3f02d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/avo/fields/base_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def translated_plural_name(default:)
# We'll fallback to humanizing the id
def name
if custom_name?
return Avo::ExecutionContext.new(target: @name).handle
Avo::ExecutionContext.new(target: @name).handle
elsif translation_key
translated_name default: default_name
else
Expand Down

0 comments on commit 3f02d1d

Please sign in to comment.