Skip to content

Commit

Permalink
Return if helpers.empty? instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericproulx committed Sep 8, 2024
1 parent 0a72ace commit 438faf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grape/endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def build_stack(helpers)

def build_helpers
helpers = namespace_stackable(:helpers)
return unless helpers
return if helpers.empty?

Module.new { helpers.each { |mod_to_include| include mod_to_include } }
end
Expand Down

0 comments on commit 438faf9

Please sign in to comment.