qol: interpolated strings

This commit is contained in:
Gary Sharp
2025-07-20 11:56:34 +10:00
parent 4e518d6684
commit 7faebe56a8
108 changed files with 342 additions and 350 deletions
+2 -2
View File
@@ -171,7 +171,7 @@ namespace Disco.Services.Logging
public static void CompressDirectory(string DirectoryPath)
{
if (DirectoryPath.Length > 250)
throw new InvalidOperationException(string.Format("Directory Path to Long (>250) to Compress: {0}", DirectoryPath));
throw new InvalidOperationException($"Directory Path to Long (>250) to Compress: {DirectoryPath}");
DirectoryInfo dirInfo = new DirectoryInfo(DirectoryPath);
if (dirInfo.Exists)
@@ -192,7 +192,7 @@ namespace Disco.Services.Logging
}
else
{
throw new InvalidOperationException(string.Format("Directory doesn't exist: {0}", DirectoryPath));
throw new InvalidOperationException($"Directory doesn't exist: {DirectoryPath}");
}
}