Skip to content

Commit

Permalink
Merge pull request #477 from DamirAinullin/loop_iteration_fix
Browse files Browse the repository at this point in the history
Use loop iteration variables instead of 0
  • Loading branch information
jonorossi authored Mar 18, 2019
2 parents 7bb0c5c + 94f2fbc commit 94bd301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Castle.Windsor/MicroKernel/Proxy/ProxyOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private bool AdditionalInterfacesAreEquals(ProxyOptions proxyOptions)
}
for (var i = 0; i < interfaceList.Count; ++i)
{
if (!proxyOptions.interfaceList.Contains(interfaceList[0]))
if (!proxyOptions.interfaceList.Contains(interfaceList[i]))
{
return false;
}
Expand Down Expand Up @@ -280,7 +280,7 @@ private bool MixInsAreEquals(ProxyOptions proxyOptions)
}
for (var i = 0; i < mixInList.Count; ++i)
{
if (!proxyOptions.mixInList.Contains(mixInList[0]))
if (!proxyOptions.mixInList.Contains(mixInList[i]))
{
return false;
}
Expand Down

0 comments on commit 94bd301

Please sign in to comment.