[前][次][番号順一覧][スレッド一覧]

ruby-changes:63630

From: Sutou <ko1@a...>
Date: Wed, 18 Nov 2020 09:05:38 +0900 (JST)
Subject: [ruby-changes:63630] 1867088d90 (master): [ruby/fiddle] Remove needless rescue

https://git.ruby-lang.org/ruby.git/commit/?id=1867088d90

From 1867088d90f6d9116c4c82e875a8e0ed7196bc02 Mon Sep 17 00:00:00 2001
From: Sutou Kouhei <kou@c...>
Date: Mon, 28 Sep 2020 07:06:27 +0900
Subject: [ruby/fiddle] Remove needless rescue

GitHub: fix GH-15

Reported by Eneroth3. Thanks!!!

https://github.com/ruby/fiddle/commit/f3d70b81ec

diff --git a/ext/fiddle/lib/fiddle/import.rb b/ext/fiddle/lib/fiddle/import.rb
index 5fcbb1c..09ffcef 100644
--- a/ext/fiddle/lib/fiddle/import.rb
+++ b/ext/fiddle/lib/fiddle/import.rb
@@ -83,11 +83,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/ext/fiddle/lib/fiddle/import.rb#L83
         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)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]