8000 fix lint warning · libvips/ruby-vips@4bfcebc · GitHub
[go: up one dir, main page]

Skip to content

Commit 4bfcebc

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

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/vips/object.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,8 @@ class Progress < FFI::Struct
6464

6565
MARSHAL_PROGRESS = proc do |handler|
6666
FFI::Function.new(:void, [:pointer, :pointer, :pointer]) do |vi, prog, cb|
67-
begin
68-
handler.call(Progress.new(prog))
69-
rescue Exception => e
70-
puts "progress: #{e}"
71-
end
67+
# this can't throw an exception, so no catch is necessary
68+
handler.call(Progress.new(prog))
7269
end
7370
end
7471

0 commit comments

Comments
 (0)
0