Skip to content

Commit a46a4cc

Browse files
committed
removed unnecessary cast
1 parent 0de00ad commit a46a4cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CountExceedingBehaviour.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static CountExceedingBehaviour ThrowIfInvalid(this CountExceedingBehaviou
4444
#if NET5_0_OR_GREATER
4545
string[] names = Enum.GetNames<CountExceedingBehaviour>();
4646
#else
47-
string[] names = (string[]) Enum.GetNames(typeof(CountExceedingBehaviour));
47+
string[] names = Enum.GetNames(typeof(CountExceedingBehaviour));
4848
#endif
4949
CountExceedingBehaviourInvalidFormat = $"{nameof(CountExceedingBehaviour)} doesn't define an option with the value '{{0}}'. Valid values are {string.Join(", ", names)}.";
5050
}
@@ -75,4 +75,4 @@ public static bool IsDropRemainingElements(this CountExceedingBehaviour countExc
7575
return countExceedingBehaviour == CountExceedingBehaviour.DropRemainingElements;
7676
}
7777
}
78-
}
78+
}

0 commit comments

Comments
 (0)