Skip to content

Commit 64e2ae8

Browse files
ledsunioquatix
authored andcommitted
Remove unused variable error
1 parent b1a0472 commit 64e2ae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/async/task.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def stop(later = false)
298298
begin
299299
# There is a chance that this will stop the fiber that originally called stop. If that happens, the exception handling in `#stopped` will rescue the exception and re-raise it later.
300300
Fiber.scheduler.raise(@fiber, Stop)
301-
rescue FiberError => error
301+
rescue FiberError
302302
# In some cases, this can cause a FiberError (it might be resumed already), so we schedule it to be stopped later:
303303
Fiber.scheduler.push(Stop::Later.new(self))
304304
end

0 commit comments

Comments
 (0)