From 02f8e2f18e92c11deb76d3f2a07e4f60b7d79fc0 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Mon, 4 Mar 2024 15:57:06 +0100 Subject: [PATCH] Fix lint (2) --- lib/vips.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/vips.rb b/lib/vips.rb index 5f8ade6..da201a3 100644 --- a/lib/vips.rb +++ b/lib/vips.rb @@ -30,9 +30,8 @@ def library_name(name, abi_number) # check if the GLib DLLs are available. If these can not be found, we # assume that GLib is statically linked into libvips. begin - lib = FFI::DynamicLibrary.open("lib#{name}-#{abi_number}.dll", + FFI::DynamicLibrary.open("lib#{name}-#{abi_number}.dll", FFI::DynamicLibrary::RTLD_LAZY | FFI::DynamicLibrary::RTLD_LOCAL) - lib if lib # LoadError for JRuby, RuntimeError for TruffleRuby rescue LoadError, RuntimeError