]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Style/RedundantConditional in app/helpers/issues_helper.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 Sep 2019 14:14:28 +0000 (14:14 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 Sep 2019 14:14:28 +0000 (14:14 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18502 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/helpers/issues_helper.rb

index 411da95ab6bd81c88259368b0691befb809a4ef1..4c3334f2ed3c1553d02cc19709127b86c88e4042 100644 (file)
@@ -1504,7 +1504,6 @@ Style/RedundantConditional:
   Exclude:
     - 'app/controllers/workflows_controller.rb'
     - 'app/helpers/application_helper.rb'
-    - 'app/helpers/issues_helper.rb'
     - 'app/models/enumeration.rb'
     - 'lib/redmine/field_format.rb'
 
index 45ce59a52a324324e16b23aa29f29672218c680f..10c179550f1d64b68832782ab7afaa5d6539f0c0 100644 (file)
@@ -370,7 +370,7 @@ module IssuesHelper
   # Returns the textual representation of a journal details
   # as an array of strings
   def details_to_strings(details, no_html=false, options={})
-    options[:only_path] = (options[:only_path] == false ? false : true)
+    options[:only_path] = !(options[:only_path] == false)
     strings = []
     values_by_field = {}
     details.each do |detail|