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:
authorDouwe Maan <douwe@selenight.nl>2018-12-20 19:45:06 +0300
committerDouwe Maan <douwe@selenight.nl>2019-01-02 17:31:33 +0300
commit48ca2dc6e1bab9aba5baa3412faf66b7ce55b148 (patch)
treefc9000c1250808c736f83d3a762073cf13ccfbf4 /lib/gitlab/checks/diff_check.rb
parent3a0ae96c0e10154c93e5160b4ee239a5d198d282 (diff)
Remove oldrev and newrev nil-checks that are now unnecessary
Diffstat (limited to 'lib/gitlab/checks/diff_check.rb')
-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 63da9a3d6b5..ea0d8c85a66 100644
--- a/lib/gitlab/checks/diff_check.rb
+++ b/lib/gitlab/checks/diff_check.rb
@@ -11,7 +11,7 @@ module Gitlab
}.freeze
def validate!
- return if deletion? || newrev.nil?
+ return if deletion?
return unless should_run_diff_validations?
return if commits.empty?