Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Mar 4, 2024
1 parent 4d99847 commit 0937574
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/vips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ 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",
lib = FFI::DynamicLibrary.open("lib#{name}-#{abi_number}.dll",
FFI::DynamicLibrary::RTLD_LAZY | FFI::DynamicLibrary::RTLD_LOCAL)
return lib if lib
lib if lib

# LoadError for JRuby, RuntimeError for TruffleRuby
rescue LoadError, RuntimeError
return "libvips-42.dll"
"libvips-42.dll"
end

# macOS and *nix uses `dlsym()`, which also searches for named symbols
Expand Down

0 comments on commit 0937574

Please sign in to comment.