Skip to content

Commit

Permalink
Avoid warning about assigned but unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Nov 17, 2022
1 parent b3b8530 commit ac717e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion spec/pg/connection_async_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def interrupt_thread(exc=nil)
end

it "doesn't worry about an already finished connection" do
t, duration = interrupt_thread(Interrupt) do
t, _ = interrupt_thread(Interrupt) do
@conn.transaction do
@conn.exec("ROLLBACK")
end
Expand Down
1 change: 0 additions & 1 deletion spec/pg/scheduler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
conn.send_query( "SELECT generate_series(0,999);" )
conn.set_single_row_mode

start_time = Time.now
res = conn.get_result
rows = res.stream_each_row.to_a

Expand Down

0 comments on commit ac717e9

Please sign in to comment.