qol: inline variable declaration

This commit is contained in:
Gary Sharp committed 2025-07-20 15:12:33 +10:00
1 parent 5792771ea1
commit 1add4ee0f5
89 files changed
+1229 -1512

No files matched your search

+1 -3
View File
@@ -43,9 +43,7 @@ namespace Disco.Services.Web.Bundles
throw new ArgumentNullException("Url");
if (string.IsNullOrWhiteSpace(File))
throw new ArgumentNullException("File");
Uri fileUri;
if (!Uri.TryCreate(File, UriKind.Absolute, out fileUri))
if (!Uri.TryCreate(File, UriKind.Absolute, out _))
{
File = HttpContext.Current.Server.MapPath(File);
}