Fix DiffCheck failing due to invalid string argument

Hot patch for #55137
This commit is contained in:
Stan Hu 2018-12-10 14:11:56 -08:00 committed by Douwe Maan
parent 85f430cb3c
commit eb335bbcfe
No known key found for this signature in database
GPG key ID: 5976703F65143D36

View file

@ -11,6 +11,7 @@ module Gitlab
}.freeze
def validate!
return if deletion? || newrev.nil?
return unless should_run_diff_validations?
return if commits.empty?
return unless uses_raw_delta_validations?