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:
Go MAEDA
2025-06-06 09:13:25 +00:00
parent 8c10cf3f30
commit ddd7beecf1

View File

@@ -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