Skip to content

Commit da799ef

Browse files
committed
Remove unneeded loop in IccClut
1 parent c19a82e commit da799ef

File tree

1 file changed

+1
-9
lines changed
  • src/ImageSharp/Metadata/Profiles/ICC/Various

1 file changed

+1
-9
lines changed

src/ImageSharp/Metadata/Profiles/ICC/Various/IccClut.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,7 @@ private bool EqualsValuesArray(IccClut other)
9191
return false;
9292
}
9393

94-
for (int i = 0; i < this.Values.Length; i++)
95-
{
96-
if (!this.Values.SequenceEqual(other.Values))
97-
{
98-
return false;
99-
}
100-
}
101-
102-
return true;
94+
return this.Values.SequenceEqual(other.Values);
10395
}
10496

10597
private void CheckValues()

0 commit comments

Comments
 (0)