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-04 18:10:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-04 18:10:36 +0300
commitbe4b3134a282f7a8812306777abd2d3150deecdc (patch)
tree0563327ce590b415047686c6feff43496742b49a /lib/gitlab/runtime.rb
parent998adcc422d4161515bf2960ef4dce71258f69a3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/runtime.rb')
-rw-r--r--lib/gitlab/runtime.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/gitlab/runtime.rb b/lib/gitlab/runtime.rb
index 968ef06b085..ee9e6da6146 100644
--- a/lib/gitlab/runtime.rb
+++ b/lib/gitlab/runtime.rb
@@ -26,13 +26,9 @@ module Gitlab
if matches.one?
matches.first
elsif matches.none?
- raise UnknownProcessError.new(
- "Failed to identify runtime for process #{Process.pid} (#{$0})"
- )
+ raise UnknownProcessError, "Failed to identify runtime for process #{Process.pid} (#{$0})"
else
- raise AmbiguousProcessError.new(
- "Ambiguous runtime #{matches} for process #{Process.pid} (#{$0})"
- )
+ raise AmbiguousProcessError, "Ambiguous runtime #{matches} for process #{Process.pid} (#{$0})"
end
end