aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-02-15 14:14:33 -0600
committerJP Dillingham <jp@dillingham.me>2026-02-15 14:14:33 -0600
commit2c1ee760f5cef4e1746a1b97a70561496787b8ee (patch)
treeb25ffccbf770f19fab705044af9e0ce2e18ab910 /src
parent962ae9f6d2638c07e33ddf692fec56ab2f81db54 (diff)
downloadslskd-2c1ee760f5cef4e1746a1b97a70561496787b8ee.tar.gz
allow all whitespace
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Transfers/Downloads/DownloadService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs
index e3ed4985..787239f7 100644
--- a/src/slskd/Transfers/Downloads/DownloadService.cs
+++ b/src/slskd/Transfers/Downloads/DownloadService.cs
@@ -253,9 +253,9 @@ namespace slskd.Transfers.Downloads
throw new ArgumentException("At least one file is required", nameof(files));
}
- if (fileList.Any(f => string.IsNullOrWhiteSpace(f.Filename)))
+ if (fileList.Any(f => string.IsNullOrEmpty(f.Filename)))
{
- throw new ArgumentException("At least one filename is null, empty, or consists of only whitespace", nameof(files));
+ throw new ArgumentException("At least one filename is null or empty", nameof(files));
}
if (fileList.Count != fileList.Distinct().Count())