Commit eba6b1cc authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'mk-project-tree-restorer-add-bang' into 'master'

Add `!` postfix to indicate call has side-effect

See merge request gitlab-org/gitlab!18120
parents 3630d71d 986a4781
......@@ -9,8 +9,8 @@ module EE
private
override :remove_feature_dependent_sub_relations
def remove_feature_dependent_sub_relations(relation_item)
override :remove_feature_dependent_sub_relations!
def remove_feature_dependent_sub_relations!(relation_item)
export_designs_disabled = ::Feature.disabled?(:export_designs, project, default_enabled: true)
if relation_item.is_a?(Hash) && export_designs_disabled
......
......@@ -120,7 +120,7 @@ module Gitlab
end
end
def remove_feature_dependent_sub_relations(_relation_item)
def remove_feature_dependent_sub_relations!(_relation_item)
# no-op
end
......@@ -191,7 +191,7 @@ module Gitlab
# Avoid keeping a possible heavy object in memory once we are done with it
while relation_item = tree_array.shift
remove_feature_dependent_sub_relations(relation_item)
remove_feature_dependent_sub_relations!(relation_item)
# The transaction at this level is less speedy than one single transaction
# But we can't have it in the upper level or GC won't get rid of the AR objects
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment