mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
DEV: Fix Lint/ShadowingOuterLocalVariable
(#32036)
unblocks a rubocop update
This commit is contained in:
@ -68,7 +68,7 @@ module Middleware
|
||||
body = response.body
|
||||
body = [body] if String === body
|
||||
rack_response = [response.status, response.headers, body]
|
||||
app = lambda { |env| rack_response }
|
||||
app = lambda { |_| rack_response }
|
||||
EXCEPTION_RESPONSE_MIDDLEWARES.each { |middleware| app = middleware.new(app) }
|
||||
return app.call(env)
|
||||
end
|
||||
|
Reference in New Issue
Block a user