mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-07 17:53:05 +00: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:
parent
8c10cf3f30
commit
ddd7beecf1
@ -1175,7 +1175,7 @@ class Issue < ApplicationRecord
|
|||||||
if leaf?
|
if leaf?
|
||||||
spent_hours
|
spent_hours
|
||||||
else
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user