Fix CI code quality

This commit is contained in:
its5Q 2022-08-08 22:06:23 +10:00
parent 5080d62e77
commit 9f043e725f
2 changed files with 4 additions and 4 deletions

View File

@ -10,10 +10,10 @@ namespace osu.Game.Configuration
{ {
public enum ScreenshotFormat public enum ScreenshotFormat
{ {
[LocalisableDescription(typeof(GraphicsSettingsStrings), nameof(GraphicsSettingsStrings.JPG))] [LocalisableDescription(typeof(GraphicsSettingsStrings), nameof(GraphicsSettingsStrings.Jpg))]
Jpg = 1, Jpg = 1,
[LocalisableDescription(typeof(GraphicsSettingsStrings), nameof(GraphicsSettingsStrings.PNG))] [LocalisableDescription(typeof(GraphicsSettingsStrings), nameof(GraphicsSettingsStrings.Png))]
Png = 2 Png = 2
} }
} }

View File

@ -132,12 +132,12 @@ namespace osu.Game.Localisation
/// <summary> /// <summary>
/// "JPG (web-friendly)" /// "JPG (web-friendly)"
/// </summary> /// </summary>
public static LocalisableString JPG => new TranslatableString(getKey(@"jpg_web_friendly"), @"JPG (web-friendly)"); public static LocalisableString Jpg => new TranslatableString(getKey(@"jpg_web_friendly"), @"JPG (web-friendly)");
/// <summary> /// <summary>
/// "PNG (lossless)" /// "PNG (lossless)"
/// </summary> /// </summary>
public static LocalisableString PNG => new TranslatableString(getKey(@"png_lossless"), @"PNG (lossless)"); public static LocalisableString Png => new TranslatableString(getKey(@"png_lossless"), @"PNG (lossless)");
private static string getKey(string key) => $"{prefix}:{key}"; private static string getKey(string key) => $"{prefix}:{key}";
} }