Skip to content

Commit 94bd301

Browse files
authored
Merge pull request #477 from DamirAinullin/loop_iteration_fix
Use loop iteration variables instead of 0
2 parents 7bb0c5c + 94f2fbc commit 94bd301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Castle.Windsor/MicroKernel/Proxy/ProxyOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ private bool AdditionalInterfacesAreEquals(ProxyOptions proxyOptions)
234234
}
235235
for (var i = 0; i < interfaceList.Count; ++i)
236236
{
237-
if (!proxyOptions.interfaceList.Contains(interfaceList[0]))
237+
if (!proxyOptions.interfaceList.Contains(interfaceList[i]))
238238
{
239239
return false;
240240
}
@@ -280,7 +280,7 @@ private bool MixInsAreEquals(ProxyOptions proxyOptions)
280280
}
281281
for (var i = 0; i < mixInList.Count; ++i)
282282
{
283-
if (!proxyOptions.mixInList.Contains(mixInList[0]))
283+
if (!proxyOptions.mixInList.Contains(mixInList[i]))
284284
{
285285
return false;
286286
}

0 commit comments

Comments
 (0)