Skip to content

Commit

Permalink
Remove redundant cast
Browse files Browse the repository at this point in the history
Remove redundant cast identified by .NET 9 in #334.
  • Loading branch information
martincostello committed Mar 29, 2024
1 parent addf853 commit 5201ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProjectEuler/Puzzles/Puzzle035.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal static IList<long> GetRotations(int value)
if (value < 12)
{
// The only rotation for values less than 12 is the value itself
return [(long)value];
return [value];
}

IReadOnlyList<int> digits = Maths.Digits(value);
Expand Down

0 comments on commit 5201ef4

Please sign in to comment.