From 5201ef4bd67951da3964722eaa9ee88c48168085 Mon Sep 17 00:00:00 2001 From: martincostello Date: Fri, 29 Mar 2024 13:02:07 +0000 Subject: [PATCH] Remove redundant cast Remove redundant cast identified by .NET 9 in #334. --- src/ProjectEuler/Puzzles/Puzzle035.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProjectEuler/Puzzles/Puzzle035.cs b/src/ProjectEuler/Puzzles/Puzzle035.cs index 7bf27677..ba89e92b 100644 --- a/src/ProjectEuler/Puzzles/Puzzle035.cs +++ b/src/ProjectEuler/Puzzles/Puzzle035.cs @@ -26,7 +26,7 @@ internal static IList GetRotations(int value) if (value < 12) { // The only rotation for values less than 12 is the value itself - return [(long)value]; + return [value]; } IReadOnlyList digits = Maths.Digits(value);