From 2c1ee760f5cef4e1746a1b97a70561496787b8ee Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 15 Feb 2026 14:14:33 -0600 Subject: allow all whitespace --- src/slskd/Transfers/Downloads/DownloadService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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()) -- cgit v1.2.3