From 8e62c813eeecc8ac7ce1562694d6591ce34b8bf3 Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Sun, 28 Jul 2024 12:51:30 +0200 Subject: [PATCH] Fix ruby warning spec/pg/connection_spec.rb:589: warning: assigned but unused variable - res --- spec/pg/connection_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/pg/connection_spec.rb b/spec/pg/connection_spec.rb index c3f15aa7e..fcc277b50 100644 --- a/spec/pg/connection_spec.rb +++ b/spec/pg/connection_spec.rb @@ -586,7 +586,7 @@ Thread.current.report_on_exception = false expect do threaded_conn = PG.connect( @conninfo + " sslcert=tmp_test_specs/data/ruby-pg-ca-cert" ) - res = threaded_conn.exec("SELECT 1") + threaded_conn.exec("SELECT 1") threaded_conn.close end.not_to raise_error end