Skip to content

Commit ef7fa56

Browse files
committed
fix lint warning
1 parent 4bfcebc commit ef7fa56

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/vips/object.rb

+2-5
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,8 @@ class Progress < FFI::Struct
110110

111111
MARSHAL_FINISH = proc do |handler|
112112
FFI::Function.new(:void, [:pointer, :pointer]) do |i, cb|
113-
begin
114-
handler.call
115-
rescue Exception => e
116-
puts "finish: #{e}"
117-
end
113+
# this can't throw an exception, so no catch is necessary
114+
handler.call
118115
end
119116
end
120117

0 commit comments

Comments
 (0)