Skip to content

Commit 59f02c0

Browse files
Fix rubocop Lint/UselessAssignment for rescue variable
The `=> e` capture is unused after changing `raise e` to bare `raise`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 68b9399 commit 59f02c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react_on_rails_pro/app/helpers/react_on_rails_pro_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def consumer_stream_async(on_complete:)
438438
stream = yield
439439
process_stream_chunks(stream, first_chunk_var, all_chunks)
440440
on_complete&.call(all_chunks)
441-
rescue StandardError => e
441+
rescue StandardError
442442
# Resolve first_chunk_var if not yet resolved, to prevent caller from hanging
443443
begin
444444
first_chunk_var.value = nil

0 commit comments

Comments
 (0)