diff options
Diffstat (limited to 'src')
| -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()) |
