diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-17 16:40:20 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-17 16:40:20 +0000 |
commit | e34eb2d89c0624739e4bdff00d2ae202550b62c4 (patch) | |
tree | ef05dce4d16f29985cc3f3146fef8c326ee68d8c /lib | |
parent | 18442d568ad8b4758ea78d65383d49c086dad240 (diff) | |
download | redmine-e34eb2d89c0624739e4bdff00d2ae202550b62c4.tar.gz redmine-e34eb2d89c0624739e4bdff00d2ae202550b62c4.zip |
code cleanup: rubocop: fix Style/WhenThen in lib/redmine/views/builders.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18722 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/views/builders.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/redmine/views/builders.rb b/lib/redmine/views/builders.rb index 907a56a69..4efdfbd48 100644 --- a/lib/redmine/views/builders.rb +++ b/lib/redmine/views/builders.rb @@ -25,9 +25,10 @@ module Redmine module Builders def self.for(format, request, response, &block) builder = case format - when 'xml', :xml; Builders::Xml.new(request, response) - when 'json', :json; Builders::Json.new(request, response) - else; raise "No builder for format #{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 if block block.call(builder) |