Skip to content

Commit

Permalink
Minor code format
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Feb 17, 2022
1 parent bcdba3b commit b324c2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion FetchXmlBuilder/AppCode/CodeGeneratorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ internal class NameValue
private static bool foundFetchData(List<NameValue> data, string name)
{
for (var i = 0; i < data.Count; i++)
{
if (data[i].Name == name) return true;
}
return false;
}

Expand All @@ -22,7 +24,8 @@ internal static NameValue GetFetchData(List<NameValue> data, string name, string
var nv = new NameValue { Name = name, Value = value };
var index = 1;
var checkName = name;
while (foundFetchData(data, checkName)) {
while (foundFetchData(data, checkName))
{
index = index + 1;
checkName = name + index;
}
Expand Down

0 comments on commit b324c2d

Please sign in to comment.