1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-05 01:04:16 +08:00

cleaner definition

Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Hivie
2025-08-06 08:40:34 +01:00
Unverified
parent 03b6f35946
commit 82f619a58a
@@ -34,9 +34,10 @@ namespace osu.Game.Rulesets.Edit.Checks
yield return new IssueTemplateMissingLanguage(this).Create();
}
private bool hasTags<T>(string tags) where T : Enum
private bool hasTags<T>(string tags)
where T : struct, Enum
{
foreach (T value in Enum.GetValues(typeof(T)))
foreach (var value in Enum.GetValues<T>())
{
string description = getGenreLanguageString(value);
string[] words = description.ToLowerInvariant().Split(' ');