mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/fiddle] Remove needless rescue
GitHub: fix GH-15
Reported by Eneroth3. Thanks!!!
f3d70b81ec
This commit is contained in:
parent
aff5eaced4
commit
1867088d90
Notes:
git
2020-11-18 09:05:46 +09:00
1 changed files with 1 additions and 5 deletions
|
@ -83,11 +83,7 @@ module Fiddle
|
||||||
when Importer
|
when Importer
|
||||||
lib.handlers
|
lib.handlers
|
||||||
else
|
else
|
||||||
begin
|
|
||||||
Fiddle.dlopen(lib)
|
Fiddle.dlopen(lib)
|
||||||
rescue DLError
|
|
||||||
raise(DLError, "can't load #{lib}")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
}.flatten()
|
}.flatten()
|
||||||
@handler = CompositeHandler.new(handles)
|
@handler = CompositeHandler.new(handles)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue