summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 17:47:28 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 17:47:28 +0000
commit07182e44756fce160f7ecf5997c45b548889d5d2 (patch)
tree37d194e8d2b42144ef4b5c7cdf5514ff29318576
parentb29ec77bb7dc43890018740384f6c85e79015baa (diff)
downloadredmine-07182e44756fce160f7ecf5997c45b548889d5d2.tar.gz
redmine-07182e44756fce160f7ecf5997c45b548889d5d2.zip
code cleanup: rubocop: fix Layout/CaseIndentation in app/helpers/versions_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18663 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--app/helpers/versions_helper.rb3
2 files changed, 2 insertions, 2 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index bd4863330..9ebd2f4f3 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -72,7 +72,6 @@ Layout/BlockEndNewline:
# SupportedStyles: case, end
Layout/CaseIndentation:
Exclude:
- - 'app/helpers/versions_helper.rb'
- 'app/models/issue_import.rb'
- 'app/models/issue_priority.rb'
- 'app/models/issue_query.rb'
diff --git a/app/helpers/versions_helper.rb b/app/helpers/versions_helper.rb
index ca93abd53..35d9b6d00 100644
--- a/app/helpers/versions_helper.rb
+++ b/app/helpers/versions_helper.rb
@@ -29,7 +29,8 @@ module VersionsHelper
def version_filtered_issues_path(version, options = {})
options = {:fixed_version_id => version, :set_filter => 1}.merge(options)
- project = case version.sharing
+ project =
+ case version.sharing
when 'hierarchy', 'tree'
if version.project && version.project.root.visible?
version.project.root