Skip to content

Commit

Permalink
SpecFlowOSS#2626 Code Cleanup for PR
Browse files Browse the repository at this point in the history
Modified location of variable declaration in EnumerableValueRetriever to make the code cleaner.
Added this change to the changelog.txt
  • Loading branch information
clrudolphi committed Aug 19, 2022
1 parent 59ce192 commit b735e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ public object Retrieve(KeyValuePair<string, string> keyValuePair, Type targetTyp

private IEnumerable GetItems(string[] strings, KeyValuePair<string, string> keyValuePair, Type targetType, Type itemType)
{
IValueRetriever retriever = null;
foreach (var splitValue in strings)
{
var itemKeyValuePair = new KeyValuePair<string, string>(keyValuePair.Key, splitValue.Trim());
retriever = GetValueRetriever(itemKeyValuePair, targetType, itemType);
var retriever = GetValueRetriever(itemKeyValuePair, targetType, itemType);
yield return retriever?.Retrieve(itemKeyValuePair, targetType, itemType);
}
}
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Features:

Fixes:
+ Support [TableAliases] also outside `CreateInstance`&`CreateSet`. Fixes #1384
+ EnumerableValueRetriever resolves a ValueRetriever for each element in the enumeration instead of reusing the ValueRetriever of the first item in the list. Fixes #2626

3.9.58

Expand Down

0 comments on commit b735e9d

Please sign in to comment.