From 0e50c8fa4c35118f334b2252ae692debb9b11400 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 31 Oct 2026 18:42:29 -0500 Subject: swap .Last() for [^1] --- src/slskd/Transfers/Downloads/DownloadService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs index c211c628..02613756 100644 --- a/src/slskd/Transfers/Downloads/DownloadService.cs +++ b/src/slskd/Transfers/Downloads/DownloadService.cs @@ -1062,7 +1062,7 @@ namespace slskd.Transfers.Downloads // Retry.Do() wraps failures in an AggregateException; use the most recent so that the state reflects what happened if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count > 0) { - exception = aggregate.InnerExceptions[^1]; + exception = aggregate.InnerExceptions.Last(); } // Soulseek.NET will include the filename and username in some messages; this is useful for many things but not tracking -- cgit v1.2.3