Skip to content

Commit

Permalink
Specify parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdeem committed Jun 12, 2024
1 parent 4c20572 commit f62add5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/ScreamURITemplate/VariableProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public struct SequenceVariableProvider: VariableProvider, ExpressibleByArrayLite
sequence = elements
}

public subscript(_ key: String) -> VariableValue? {
public subscript(_ name: String) -> VariableValue? {
for provider in sequence {
if let value = provider[key] {
if let value = provider[name] {
return value
}
}
Expand Down

0 comments on commit f62add5

Please sign in to comment.