Skip to content

Commit

Permalink
Keep the continue/rescue block if both requires fail
Browse files Browse the repository at this point in the history
  • Loading branch information
januszm committed Feb 5, 2024
1 parent 54c3452 commit 0915294
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rgeo/geos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ module Geos
begin
require_relative "geos/geos_c_impl"
rescue LoadError
require "geos/geos_c_impl"
begin
require "geos/geos_c_impl"
rescue LoadError
# continue
end
end
CAPI_SUPPORTED = RGeo::Geos.const_defined?(:CAPIGeometryMethods)
if CAPI_SUPPORTED
Expand Down

0 comments on commit 0915294

Please sign in to comment.