Skip to content

Commit 43f25db

Browse files
committed
Merge pull request #771 from rustygeldmacher/remove_unneeded_conditional
Removed unnecessary conditional in `call!`
2 parents 8ff95b1 + b617f23 commit 43f25db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape/endpoint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def call!(env)
188188
options[:app].call(env)
189189
else
190190
builder = build_middleware
191-
builder.run options[:app] || lambda { |arg| run(arg) }
191+
builder.run lambda { |arg| run(arg) }
192192
builder.call(env)
193193
end
194194
end

0 commit comments

Comments
 (0)