Skip to content

Commit 5652d30

Browse files
committed
Remove unused line
Removed `self.value = value` in TimerTask#timeout_task This line was probably added as a copy-mistake from the above method (execute_task).
1 parent 8ccb214 commit 5652d30

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/concurrent-ruby/concurrent/timer_task.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ def execute_task(completion)
325325
def timeout_task(completion)
326326
return unless @running.true?
327327
if completion.try?
328-
self.value = value
329328
schedule_next_task
330329
observers.notify_observers(Time.now, nil, Concurrent::TimeoutError.new)
331330
end

0 commit comments

Comments
 (0)