Skip to content

Commit e7339dd

Browse files
yahondaclaude
andcommitted
Remove unused result_new local in get_ruby_value_from_result_set
Running specs under `RUBYOPT=-w` (e.g. JRuby head CI) surfaced: lib/plsql/jdbc_connection.rb:381: warning: assigned but unused variable - result_new The variable was assigned but never read; the method already returned the converted value. Dropping the assignment silences the warning without changing behavior. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a473dd2 commit e7339dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/plsql/jdbc_connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def get_bind_variable(stmt, i, type)
378378
def get_ruby_value_from_result_set(rset, i, metadata)
379379
ruby_type = SQL_TYPE_TO_RUBY_CLASS[metadata[:sql_type]]
380380
ora_value = get_bind_variable(rset, i, ruby_type)
381-
result_new = ora_value_to_ruby_value(ora_value)
381+
ora_value_to_ruby_value(ora_value)
382382
end
383383

384384
def result_set_to_ruby_data_type(column_type, column_type_name)

0 commit comments

Comments
 (0)