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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#64348] Remove redundant returns
Tobias Dillmanncc610c153a4f
diff --git a/app/models/custom_field/calculated_value.rb b/app/models/custom_field/calculated_value.rbindex 1a2b64dfe69..94da6578a97 100644--- a/app/models/custom_field/calculated_value.rb+++ b/app/models/custom_field/calculated_value.rb@@ -56,10 +56,7 @@ module CustomField::CalculatedValueunless valid_formula_syntax?errors.add(:formula, :invalid)- returnend-- trueenddef formula=(value)@@ -97,10 +94,7 @@ module CustomField::CalculatedValueif surplus_cfs.any?custom_field_names = CustomField.where(id: surplus_cfs).pluck(:name)errors.add(:formula, :invalid_custom_fields, custom_fields: custom_field_names.join(", "))- returnend-- trueendprivate