run dotnet format

This commit is contained in:
Cucumberrbob 2025-03-16 15:34:25 +00:00
parent afc7d1a964
commit 93fac23128
No known key found for this signature in database
GPG key ID: 2B935C47401C3614
2 changed files with 12 additions and 10 deletions

View file

@ -322,12 +322,14 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
{ {
return fileName.Trim('"'); return fileName.Trim('"');
} }
} else }
else
{ {
if (response.Content.Headers.ContentType?.MediaType == "application/zip") if (response.Content.Headers.ContentType?.MediaType == "application/zip")
{ {
return $"download-{new Random().Next(1, 10001)}.zip"; return $"download-{new Random().Next(1, 10001)}.zip";
} else }
else
{ {
logger.LogDebug($"Failed to get filename for URI {downloadUrl}"); logger.LogDebug($"Failed to get filename for URI {downloadUrl}");
} }