Skip to content

Commit 79a643f

Browse files
yahondaclaude
andcommitted
Rename internal variable competitors -> candidates
Per review feedback. The variable is purely local; no error-message text or spec assertion changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 53ca2f9 commit 79a643f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/plsql/connection.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ class Connection
2020
# branch on :database vs :sid. Raises ArgumentError on conflicts or
2121
# invalid values.
2222
def self.resolve_database_aliases!(params)
23-
competitors = []
24-
competitors << ":database" if params[:database]
25-
competitors << ":service_name" if params[:service_name]
26-
competitors << ":sid" if params[:sid]
27-
if competitors.size > 1
23+
candidates = []
24+
candidates << ":database" if params[:database]
25+
candidates << ":service_name" if params[:service_name]
26+
candidates << ":sid" if params[:sid]
27+
if candidates.size > 1
2828
raise ArgumentError,
29-
"Cannot specify more than one of #{competitors.join(', ')}; they are mutually exclusive."
29+
"Cannot specify more than one of #{candidates.join(', ')}; they are mutually exclusive."
3030
end
3131

3232
if (svc = params[:service_name])

0 commit comments

Comments
 (0)