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
@@ -70,7 +70,7 @@ namespace Disco.Web.Areas.Config.Models.JobPreferences
var current = LongRunningJobDaysThreshold;
if (!options.Any(o => o.Key == current))
{
options.Add(new KeyValuePair<int, string>(current, string.Format("{0} Days", current)));
options.Add(new KeyValuePair<int, string>(current, $"{current} Days"));
options = options.OrderBy(o => o.Key).ToList();
}
@@ -106,7 +106,7 @@ namespace Disco.Web.Areas.Config.Models.JobPreferences
var current = StaleJobMinutesThreshold;
if (!options.Any(o => o.Key == current))
{
options.Add(new KeyValuePair<int, string>(current, string.Format("{0} Minutes", current)));
options.Add(new KeyValuePair<int, string>(current, $"{current} Minutes"));
options = options.OrderBy(o => o.Key).ToList();
}