1
0
Fork 0
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!!!

https://github.com/ruby/fiddle/commit/f3d70b81ec
This commit is contained in:
Sutou Kouhei 2020-09-28 07:06:27 +09:00 committed by Sutou Kouhei
parent aff5eaced4
commit 1867088d90
Notes: git 2020-11-18 09:05:46 +09:00

View file

@ -83,11 +83,7 @@ module Fiddle
when Importer
lib.handlers
else
begin
Fiddle.dlopen(lib)
rescue DLError
raise(DLError, "can't load #{lib}")
end
Fiddle.dlopen(lib)
end
}.flatten()
@handler = CompositeHandler.new(handles)