Commit ff9bc9c
Drop redundant .to_s inside string interpolation
In `CallableStatement#bind_param_index` the leading-colon normalization
wrote `":#{key.to_s}"`. String interpolation already invokes `to_s`
on the embedded expression, so the explicit call is redundant.
The `key.to_s =~ /^:/` on the right-hand side is intentionally kept;
that one is outside the interpolation and ensures the regex match
receives a String regardless of whether `key` is a Symbol or String.
No behavior change. Full suite is green (468 examples, 0 failures,
1 pre-existing pending).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e12dd09 commit ff9bc9c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
0 commit comments