Skip to content

Commit 2d7dec9

Browse files
charlesroddieCharles Roddie
andauthored
Remove EnumGetValues (#230)
Co-authored-by: Charles Roddie <charles.roddie@summatic.co.uk>
1 parent cf8fe8c commit 2d7dec9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CSharpMath.Editor/SubIndexTypeMismatchException.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ public class SubIndexTypeMismatchException : InvalidOperationException {
77
public SubIndexTypeMismatchException(Type atomType, MathListIndex index) : base(
88
$"{atomType} not found at index {index.AtomIndex}.") { }
99
public SubIndexTypeMismatchException(MathListIndex index) : base(
10-
Array.IndexOf(typeof(MathListSubIndexType).GetEnumValues(), index.SubIndexType) == -1
11-
? $"{index.SubIndexType} is an invalid subindex type."
12-
: $"{index.SubIndexType} not found at index {index.AtomIndex}.") { }
10+
$"{index.SubIndexType} not found at index {index.AtomIndex}.") { }
1311
}
1412
}

0 commit comments

Comments
 (0)