Skip to content

Commit 02f8e2f

Browse files
committed
Fix lint (2)
1 parent 0937574 commit 02f8e2f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/vips.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ def library_name(name, abi_number)
3030
# check if the GLib DLLs are available. If these can not be found, we
3131
# assume that GLib is statically linked into libvips.
3232
begin
33-
lib = FFI::DynamicLibrary.open("lib#{name}-#{abi_number}.dll",
33+
FFI::DynamicLibrary.open("lib#{name}-#{abi_number}.dll",
3434
FFI::DynamicLibrary::RTLD_LAZY | FFI::DynamicLibrary::RTLD_LOCAL)
35-
lib if lib
3635

3736
# LoadError for JRuby, RuntimeError for TruffleRuby
3837
rescue LoadError, RuntimeError

0 commit comments

Comments
 (0)