Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/projects/unlink_fork_service.rb')
-rw-r--r--app/services/projects/unlink_fork_service.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/projects/unlink_fork_service.rb b/app/services/projects/unlink_fork_service.rb
index cdd1870858e..dbac59dd32b 100644
--- a/app/services/projects/unlink_fork_service.rb
+++ b/app/services/projects/unlink_fork_service.rb
@@ -46,9 +46,7 @@ module Projects
end
# rubocop: enable Cop/InBatches
- if Feature.enabled?(:refresh_statistics_on_unlink_fork, @project.namespace) && refresh_statistics
- ProjectCacheWorker.perform_async(project.id, [], [:repository_size])
- end
+ ProjectCacheWorker.perform_async(project.id, [], [:repository_size]) if refresh_statistics
# When the project getting out of the network is a node with parent
# and children, both the parent and the node needs a cache refresh.