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>2020-03-18 21:09:35 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-18 21:09:35 +0300
commit5bfb8d1fad825eec90b0af688c7cd1b352c9056e (patch)
tree385411919c4186d11a769385ad8dafeef6cc36a7 /lib/gitlab/checks
parentaaf59610548d9b0fd01acfd50e831cbe519ecba2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/checks')
-rw-r--r--lib/gitlab/checks/diff_check.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/checks/diff_check.rb b/lib/gitlab/checks/diff_check.rb
index 0eb2b4c79ef..a73f243e946 100644
--- a/lib/gitlab/checks/diff_check.rb
+++ b/lib/gitlab/checks/diff_check.rb
@@ -21,7 +21,7 @@ module Gitlab
process_commits do |commit|
validate_once(commit) do
commit.raw_deltas.each do |diff|
- file_paths << (diff.new_path || diff.old_path)
+ file_paths.concat([diff.new_path, diff.old_path].compact)
validate_diff(diff)
end