diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-02-15 14:14:33 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-02-15 14:14:33 -0600 |
| commit | 2c1ee760f5cef4e1746a1b97a70561496787b8ee (patch) | |
| tree | b25ffccbf770f19fab705044af9e0ce2e18ab910 | |
| parent | 962ae9f6d2638c07e33ddf692fec56ab2f81db54 (diff) | |
| download | slskd-2c1ee760f5cef4e1746a1b97a70561496787b8ee.tar.gz | |
allow all whitespace
| -rw-r--r-- | src/slskd/Transfers/Downloads/DownloadService.cs | 4 |
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()) |
