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:
@@ -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(' ');
|
||||
|
||||
Reference in New Issue
Block a user