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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-06-06 15:07:34 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-06 15:07:34 +0300
commit4958d96e262f6b31b2850123e4949536555b2d29 (patch)
tree28fe9a1fed009a569806c705e4810a33979cbd6a /app/finders
parent95de7177f2d5844e4aa399fea9a59d4ba6b4b1f1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/template_finder.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/app/finders/template_finder.rb b/app/finders/template_finder.rb
index c9b5711949f..a8dd2cde20f 100644
--- a/app/finders/template_finder.rb
+++ b/app/finders/template_finder.rb
@@ -27,14 +27,9 @@ class TemplateFinder
end
def type_allowed?(type)
- case type.to_s
- when 'licenses'
- true
- when 'metrics_dashboard_ymls'
- !Feature.enabled?(:remove_monitor_metrics)
- else
- VENDORED_TEMPLATES.key?(type)
- end
+ return true if type.to_s == 'licenses'
+
+ VENDORED_TEMPLATES.key?(type)
end
end