Browse Source

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
tags/4.1.0
Toshi MARUYAMA 4 years ago
parent
commit
57923d0450
2 changed files with 3 additions and 3 deletions
  1. 0
    1
      .rubocop_todo.yml
  2. 3
    2
      lib/redmine/views/builders.rb

+ 0
- 1
.rubocop_todo.yml View File

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

# Cop supports --auto-correct.
Layout/ClosingHeredocIndentation:

+ 3
- 2
lib/redmine/views/builders.rb View File

@@ -24,12 +24,13 @@ module Redmine
module Views
module Builders
def self.for(format, request, response, &block)
builder = case format
builder =
case format
when 'xml', :xml then Builders::Xml.new(request, response)
when 'json', :json then Builders::Json.new(request, response)
else
raise "No builder for format #{format}"
end
end
if block
block.call(builder)
else

Loading…
Cancel
Save