Skip to content

Commit

Permalink
Merge pull request #29560 from fatkodima/remove_unnecessary_tap_call
Browse files Browse the repository at this point in the history
Remove unnecessary `tap` call on `ActionDispatch::MiddlewareStack.new`
  • Loading branch information
rafaelfranca committed Jun 26, 2017
2 parents d941248 + e221bd0 commit cb8eac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/application/default_middleware_stack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initialize(app, config, paths)
end

def build_stack
ActionDispatch::MiddlewareStack.new.tap do |middleware|
ActionDispatch::MiddlewareStack.new do |middleware|
if config.force_ssl
middleware.use ::ActionDispatch::SSL, config.ssl_options
end
Expand Down

0 comments on commit cb8eac4

Please sign in to comment.