summaryrefslogtreecommitdiffstats
path: root/app/models/custom_field.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-08-25 08:44:33 +0000
committerGo MAEDA <maeda@farend.jp>2024-08-25 08:44:33 +0000
commitfdd90bab2b02d6fdd08a860808560eb2cf382af6 (patch)
treebcf26941dbc0fc8a0a6542f35d9fd5a92e1b5aa1 /app/models/custom_field.rb
parentfd83e97b135ee8affedf57f18952bce30271fc2e (diff)
downloadredmine-fdd90bab2b02d6fdd08a860808560eb2cf382af6.tar.gz
redmine-fdd90bab2b02d6fdd08a860808560eb2cf382af6.zip
Fix RuboCop offenses Style/NegatedIf and Style/NegatedWhile (#39887, #7770).
git-svn-id: https://svn.redmine.org/redmine/trunk@22987 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r--app/models/custom_field.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 136a336ed..ec8c5de8d 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -301,7 +301,7 @@ class CustomField < ApplicationRecord
unless errs.any?
if value.is_a?(Array)
- if !multiple?
+ unless multiple?
errs << ::I18n.t('activerecord.errors.messages.invalid')
end
if is_required? && value.detect(&:present?).nil?