1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Remove unused 'raise' from test_case

https://github.com/rubygems/rubygems/commit/2481efcb37
This commit is contained in:
bronzdoc 2019-06-29 23:50:40 -06:00 committed by Hiroshi SHIBATA
parent eb35124cca
commit 7081185664
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -805,9 +805,6 @@ class Gem::TestCase < (defined?(Minitest::Test) ? Minitest::Test : MiniTest::Uni
# location are returned. # location are returned.
def util_gem(name, version, deps = nil, &block) def util_gem(name, version, deps = nil, &block)
# TODO: deprecate
raise "deps or block, not both" if deps and block
if deps if deps
block = proc do |s| block = proc do |s|
# Since Hash#each is unordered in 1.8, sort # Since Hash#each is unordered in 1.8, sort