Commit 886d26ef authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use new Commit#raw_deltas method

parent 004d4c4e
......@@ -188,7 +188,7 @@ module Gitlab
return if validations.empty?
commit.raw_diffs(deltas_only: true).each do |diff|
commit.raw_deltas.each do |diff|
validations.each do |validation|
if error = validation.call(diff)
return error
......
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