Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

linting

ulferts6682b7331380
diff --git a/app/models/queries/filters/base.rb b/app/models/queries/filters/base.rb
index 0c98953d6f1..fff4f02ad43 100644
--- a/app/models/queries/filters/base.rb
+++ b/app/models/queries/filters/base.rb
@@ -196,7 +196,7 @@ class Queries::Filters::Base
end
def validate_presence_of_values
- if operator_strategy && operator_strategy.requires_value? && (values.nil? || values.reject(&:blank?).empty?)
+ if operator_strategy&.requires_value? && (values.nil? || values.reject(&:blank?).empty?)
errors.add(:values, I18n.t('activerecord.errors.messages.blank'))
end
end