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
+1 -1
View File
@@ -130,7 +130,7 @@ namespace Disco.Services.Tasks
{
var existingGuid = _RunningTasks.Where(t => t.IsRunning && t.TaskType == taskType).Select(t => t.SessionId).FirstOrDefault();
if (existingGuid != null)
throw new InvalidOperationException(string.Format("This Single-Instance Task is already running, SessionId: {0}", existingGuid));
throw new InvalidOperationException($"This Single-Instance Task is already running, SessionId: {existingGuid}");
}
_RunningTasks.Add(taskStatus);
}