From f53cf3f333903574584efc6b1259e8c0f6dd5899 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);