mirror of
https://github.com/redmine/redmine.git
synced 2026-01-20 14:33:06 +01:00
Fix RuboCop Lint/UselessOr (#41884).
git-svn-id: https://svn.redmine.org/redmine/trunk@23822 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1175,7 +1175,7 @@ class Issue < ApplicationRecord
|
||||
if leaf?
|
||||
spent_hours
|
||||
else
|
||||
self_and_descendants.joins(:time_entries).sum("#{TimeEntry.table_name}.hours").to_f || 0.0
|
||||
self_and_descendants.joins(:time_entries).sum("#{TimeEntry.table_name}.hours").to_f
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user