Skip to content

Commit be73566

Browse files
committed
fix rubocop
1 parent 0530df5 commit be73566

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/vips.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
# Platform notes:
1616
# linux:
1717
# Some distros allow "libvips.so", but only if the -dev headers have been
18-
# installed. To work everywhere, you must include the ABI number.
19-
# Confusingly, the file extension is not at the end. ffi adds the "lib"
18+
# installed. To work everywhere, you must include the ABI number.
19+
# Confusingly, the file extension is not at the end. ffi adds the "lib"
2020
# prefix.
2121
# mac:
2222
# As linux, but the extension is at the end and is added by ffi.
2323
# windows:
24-
# The ABI number must be included, but with a hyphen. ffi does not add a
24+
# The ABI number must be included, but with a hyphen. ffi does not add a
2525
# "lib" prefix or a ".dll" suffix.
2626
def library_name(name, abi_number)
2727
if FFI::Platform.windows?
28-
return "lib#{name}-#{abi_number}.dll"
28+
"lib#{name}-#{abi_number}.dll"
2929
elsif FFI::Platform.mac?
30-
return "#{name}.#{abi_number}"
30+
"#{name}.#{abi_number}"
3131
else
32-
return "#{name}.so.#{abi_number}"
32+
"#{name}.so.#{abi_number}"
3333
end
3434
end
3535

@@ -42,7 +42,7 @@ class << self
4242

4343
extend FFI::Library
4444

45-
ffi_lib library_name('glib-2.0', 0)
45+
ffi_lib library_name('glib-2.0', 0)
4646

4747
attach_function :g_malloc, [:size_t], :pointer
4848

@@ -134,7 +134,7 @@ def self.set_log_domain domain
134134
module GObject
135135
extend FFI::Library
136136

137-
ffi_lib library_name('gobject-2.0', 0)
137+
ffi_lib library_name('gobject-2.0', 0)
138138

139139
# we can't just use ulong, windows has different int sizing rules
140140
if FFI::Platform::ADDRESS_SIZE == 64
@@ -470,7 +470,7 @@ module GObject
470470
module Vips
471471
extend FFI::Library
472472

473-
ffi_lib library_name('vips', 42)
473+
ffi_lib library_name('vips', 42)
474474

475475
LOG_DOMAIN = "VIPS"
476476
GLib::set_log_domain LOG_DOMAIN

0 commit comments

Comments
 (0)