1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 16:13:34 +08:00

Sprinkle some raw string prefixes

This commit is contained in:
Bartłomiej Dach 2024-02-14 16:20:47 +01:00
parent f7bea00564
commit ae9a2661ac
No known key found for this signature in database

View File

@ -431,7 +431,7 @@ namespace osu.Game.Screens.Select
try
{
List<string> keys = new List<string> { "seconds", "minutes", "hours", "days", "months", "years" };
List<string> keys = new List<string> { @"seconds", @"minutes", @"hours", @"days", @"months", @"years" };
foreach (string key in keys)
{
@ -445,27 +445,27 @@ namespace osu.Game.Screens.Select
switch (key)
{
case "seconds":
case @"seconds":
dateTimeOffset = (dateTimeOffset ?? now).AddSeconds(-length);
break;
case "minutes":
case @"minutes":
dateTimeOffset = (dateTimeOffset ?? now).AddMinutes(-length);
break;
case "hours":
case @"hours":
dateTimeOffset = (dateTimeOffset ?? now).AddHours(-length);
break;
case "days":
case @"days":
dateTimeOffset = (dateTimeOffset ?? now).AddDays(-length);
break;
case "months":
case @"months":
dateTimeOffset = (dateTimeOffset ?? now).AddMonths(-(int)length);
break;
case "years":
case @"years":
dateTimeOffset = (dateTimeOffset ?? now).AddYears(-(int)length);
break;
}