[go: nahoru, domu]

Skip to content

Commit

Permalink
removed unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Guiorgy committed Feb 24, 2024
1 parent 81542dc commit bb825aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CountExceedingBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static CountExceedingBehaviour ThrowIfInvalid(this CountExceedingBehaviou
#if NET5_0_OR_GREATER
string[] names = Enum.GetNames<CountExceedingBehaviour>();
#else
string[] names = (string[]) Enum.GetNames(typeof(CountExceedingBehaviour));
string[] names = Enum.GetNames(typeof(CountExceedingBehaviour));
#endif
CountExceedingBehaviourInvalidFormat = $"{nameof(CountExceedingBehaviour)} doesn't define an option with the value '{{0}}'. Valid values are {string.Join(", ", names)}.";
}
Expand Down Expand Up @@ -75,4 +75,4 @@ public static bool IsDropRemainingElements(this CountExceedingBehaviour countExc
return countExceedingBehaviour == CountExceedingBehaviour.DropRemainingElements;
}
}
}
}

0 comments on commit bb825aa

Please sign in to comment.