diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 411da95ab..4c3334f2e 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 45ce59a52..10c179550 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -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|