mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
code cleanup: rubocop: fix Layout/ElseAlignment in Issue class total_spent_hours method
git-svn-id: http://svn.redmine.org/redmine/trunk@18567 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1069,11 +1069,12 @@ class Issue < ActiveRecord::Base
|
||||
|
||||
# Returns the total number of hours spent on this issue and its descendants
|
||||
def total_spent_hours
|
||||
@total_spent_hours ||= if leaf?
|
||||
spent_hours
|
||||
else
|
||||
self_and_descendants.joins(:time_entries).sum("#{TimeEntry.table_name}.hours").to_f || 0.0
|
||||
end
|
||||
@total_spent_hours ||=
|
||||
if leaf?
|
||||
spent_hours
|
||||
else
|
||||
self_and_descendants.joins(:time_entries).sum("#{TimeEntry.table_name}.hours").to_f || 0.0
|
||||
end
|
||||
end
|
||||
|
||||
def total_estimated_hours
|
||||
|
||||
Reference in New Issue
Block a user