aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-31 18:42:29 -0500
committerJP Dillingham <jp@dillingham.me>2026-10-31 18:42:29 -0500
commit0e50c8fa4c35118f334b2252ae692debb9b11400 (patch)
tree663f05e79a4d4e152b1c22b56a78d584c700d5b5 /src/slskd
parent73373e2ce4b0939bdc621d60d434d5e0954586ed (diff)
downloadslskd-0e50c8fa4c35118f334b2252ae692debb9b11400.tar.gz
swap .Last() for [^1]
Diffstat (limited to 'src/slskd')
-rw-r--r--src/slskd/Transfers/Downloads/DownloadService.cs2
1 files changed, 1 insertions, 1 deletions
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