Commit 166fdec3 authored by Gary Holtz's avatar Gary Holtz

Refactor the diff line to something more compact

parent d284ecaa
...@@ -21,9 +21,7 @@ module Gitlab ...@@ -21,9 +21,7 @@ module Gitlab
process_commits do |commit| process_commits do |commit|
validate_once(commit) do validate_once(commit) do
commit.raw_deltas.each do |diff| commit.raw_deltas.each do |diff|
[diff.new_path, diff.old_path].each do |path| file_paths.concat([diff.new_path, diff.old_path].compact)
file_paths << path if path
end
validate_diff(diff) validate_diff(diff)
end end
......
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