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
process_commits do |commit|
validate_once(commit) do
commit.raw_deltas.each do |diff|
[diff.new_path, diff.old_path].each do |path|
file_paths << path if path
end
file_paths.concat([diff.new_path, diff.old_path].compact)
validate_diff(diff)
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