mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
code cleanup: rubocop: fix Style/RedundantConditional in app/helpers/issues_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18502 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fe78039aea
commit
8fb0ec3c3b
@ -1504,7 +1504,6 @@ Style/RedundantConditional:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- 'app/controllers/workflows_controller.rb'
|
- 'app/controllers/workflows_controller.rb'
|
||||||
- 'app/helpers/application_helper.rb'
|
- 'app/helpers/application_helper.rb'
|
||||||
- 'app/helpers/issues_helper.rb'
|
|
||||||
- 'app/models/enumeration.rb'
|
- 'app/models/enumeration.rb'
|
||||||
- 'lib/redmine/field_format.rb'
|
- 'lib/redmine/field_format.rb'
|
||||||
|
|
||||||
|
|||||||
@ -370,7 +370,7 @@ module IssuesHelper
|
|||||||
# Returns the textual representation of a journal details
|
# Returns the textual representation of a journal details
|
||||||
# as an array of strings
|
# as an array of strings
|
||||||
def details_to_strings(details, no_html=false, options={})
|
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 = []
|
strings = []
|
||||||
values_by_field = {}
|
values_by_field = {}
|
||||||
details.each do |detail|
|
details.each do |detail|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user