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-01-12 18:09:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-12 18:09:17 +0300
commitd549d413bb69f87ec26661ec96287bb4b25c32ff (patch)
treeac50717d0e3db25fd64bd36c1090496c42b24556 /tooling
parent1caab68312013cae5083460ec8e03796daef9341 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rw-r--r--tooling/lib/tooling/view_to_js_mappings.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/tooling/lib/tooling/view_to_js_mappings.rb b/tooling/lib/tooling/view_to_js_mappings.rb
index 48568db382b..76704a04469 100644
--- a/tooling/lib/tooling/view_to_js_mappings.rb
+++ b/tooling/lib/tooling/view_to_js_mappings.rb
@@ -39,7 +39,10 @@ module Tooling
# Keep the files that are in the @view_base_folders folder
def view_files(changed_files)
- changed_files.select { |filename| filename.start_with?(*@view_base_folders) }
+ changed_files.select do |filename|
+ filename.start_with?(*@view_base_folders) &&
+ File.exist?(filename)
+ end
end
def folders_for_available_editions(base_folder)