Skip to content

Commit eef2428

Browse files
committed
fix(#1975): Apply suggestions
1 parent 3f5825d commit eef2428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape/api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def add_setup(method, *args, &block)
152152
end
153153

154154
# Updating all previously mounted classes in the case that new methods have been executed.
155-
if method != :mount && @setup.size > 1
155+
if method != :mount && @setup.any?
156156
previous_mount_steps = @setup.select { |step| step[:method] == :mount }
157157
previous_mount_steps.each do |mount_step|
158158
refresh_mount_step = mount_step.merge(method: :refresh_mounted_api)

0 commit comments

Comments
 (0)