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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-19 18:44:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-19 18:44:42 +0300
commit4555e1b21c365ed8303ffb7a3325d773c9b8bf31 (patch)
tree5423a1c7516cffe36384133ade12572cf709398d /lib/gitlab/verify
parente570267f2f6b326480d284e0164a6464ba4081bc (diff)
Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42
Diffstat (limited to 'lib/gitlab/verify')
-rw-r--r--lib/gitlab/verify/batch_verifier.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/gitlab/verify/batch_verifier.rb b/lib/gitlab/verify/batch_verifier.rb
index fc114a4e9dd..71d106db742 100644
--- a/lib/gitlab/verify/batch_verifier.rb
+++ b/lib/gitlab/verify/batch_verifier.rb
@@ -24,11 +24,11 @@ module Gitlab
end
def name
- raise NotImplementedError.new
+ raise NotImplementedError
end
def describe(_object)
- raise NotImplementedError.new
+ raise NotImplementedError
end
private
@@ -39,7 +39,7 @@ module Gitlab
def verify(object)
local?(object) ? verify_local(object) : verify_remote(object)
- rescue => err
+ rescue StandardError => err
failure(object, err.inspect)
end
@@ -77,27 +77,27 @@ module Gitlab
# This should return an ActiveRecord::Relation suitable for calling #in_batches on
def all_relation
- raise NotImplementedError.new
+ raise NotImplementedError
end
# Should return true if the object is stored locally
def local?(_object)
- raise NotImplementedError.new
+ raise NotImplementedError
end
# The checksum we expect the object to have
def expected_checksum(_object)
- raise NotImplementedError.new
+ raise NotImplementedError
end
# The freshly-recalculated checksum of the object
def actual_checksum(_object)
- raise NotImplementedError.new
+ raise NotImplementedError
end
# Be sure to perform a hard check of the remote object (don't just check DB value)
def remote_object_exists?(object)
- raise NotImplementedError.new
+ raise NotImplementedError
end
end
end