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

[#66093] Remove redundant if

Tobias Dillmannf3751825ba60
diff --git a/lib/api/v3/utilities/custom_field_injector.rb b/lib/api/v3/utilities/custom_field_injector.rb
index 38e350db3c2..cef0be0a94c 100644
--- a/lib/api/v3/utilities/custom_field_injector.rb
+++ b/lib/api/v3/utilities/custom_field_injector.rb
@@ -276,12 +276,10 @@ module API
cache_if: config[:cache_if],
render_nil: true
- if custom_field.calculated_value?
- @class.property :"#{custom_field.attribute_name}errors",
- getter: calculated_value_error_getter(custom_field),
- cache_if: config[:cache_if],
- render_nil: false
- end
+ @class.property :"#{custom_field.attribute_name}errors",
+ getter: calculated_value_error_getter(custom_field),
+ cache_if: config[:cache_if],
+ render_nil: false
end
def property_value_getter_for(custom_field)