Fixes RuboCop error Layout/EmptyLineAfterGuardClause.

Patch by Katsuya HIDAKA (user:hidakatsuya).

git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23965 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2025-09-09 20:53:50 +00:00
parent 0af19c1f71
commit 231df012e6

View File

@@ -2081,6 +2081,7 @@ class Issue < ActiveRecord::Base
# current user.
def force_default_value_on_noneditable_custom_fields
return unless custom_field_values_changed?
editable_custom_field_ids = editable_custom_fields(author).map(&:id)
custom_field_values.each do |field_value|
unless editable_custom_field_ids.include?(field_value.custom_field_id)