Skip to content

Commit

Permalink
merged double if check
Browse files Browse the repository at this point in the history
  • Loading branch information
kkjamie committed Nov 17, 2017
1 parent 8af16bc commit ab8c3e0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Serialization/ArgsList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,9 @@ public void SetTypes(IList<Type> types)
{
for (int i = 0; i < oldArgs.Count; i++)
{
if (i < types.Count)
if (i < types.Count && types[i] == argTypes[i])
{
if (types[i] == argTypes[i])
{
args[i] = oldArgs[i];
}
args[i] = oldArgs[i];
}
}
}
Expand Down

0 comments on commit ab8c3e0

Please sign in to comment.