1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

code cleanup: rubocop: fix Layout/CaseIndentation in lib/redmine/views/builders.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18723 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-17 16:40:32 +00:00
parent e34eb2d89c
commit 57923d0450
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,6 @@ Layout/CaseIndentation:
- 'config/initializers/10-patches.rb' - 'config/initializers/10-patches.rb'
- 'lib/redmine/helpers/gantt.rb' - 'lib/redmine/helpers/gantt.rb'
- 'lib/redmine/menu_manager.rb' - 'lib/redmine/menu_manager.rb'
- 'lib/redmine/views/builders.rb'
# Cop supports --auto-correct. # Cop supports --auto-correct.
Layout/ClosingHeredocIndentation: Layout/ClosingHeredocIndentation:

View File

@ -24,7 +24,8 @@ module Redmine
module Views module Views
module Builders module Builders
def self.for(format, request, response, &block) def self.for(format, request, response, &block)
builder = case format builder =
case format
when 'xml', :xml then Builders::Xml.new(request, response) when 'xml', :xml then Builders::Xml.new(request, response)
when 'json', :json then Builders::Json.new(request, response) when 'json', :json then Builders::Json.new(request, response)
else else