From b20876098885ca46bcc2ca66fc063f50447290be Mon Sep 17 00:00:00 2001 From: andy840119 Date: Sat, 7 Dec 2024 16:48:14 +0800 Subject: [PATCH] Remove unnecessary generic type. --- osu.Game.Rulesets.Karaoke.Architectures/Extensions.cs | 2 +- .../Helper/TestCaseTagHelper.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke.Architectures/Extensions.cs b/osu.Game.Rulesets.Karaoke.Architectures/Extensions.cs index 3fb33f4c2..ab09dd8bd 100644 --- a/osu.Game.Rulesets.Karaoke.Architectures/Extensions.cs +++ b/osu.Game.Rulesets.Karaoke.Architectures/Extensions.cs @@ -116,7 +116,7 @@ private static string getRelativeNamespace(Project.ProjectAttribute project, str public static IEnumerable GetMethodMembersContainsName(this IType type, string name) { - return type.GetMethodMembers().WhereNameContains(name); + return type.GetMethodMembers().WhereNameContains(name); } public static IEnumerable WhereNameContains(this IEnumerable source, string name) where TType : IHasName diff --git a/osu.Game.Rulesets.Karaoke.Tests/Helper/TestCaseTagHelper.cs b/osu.Game.Rulesets.Karaoke.Tests/Helper/TestCaseTagHelper.cs index 7e69a4538..99d9b4418 100644 --- a/osu.Game.Rulesets.Karaoke.Tests/Helper/TestCaseTagHelper.cs +++ b/osu.Game.Rulesets.Karaoke.Tests/Helper/TestCaseTagHelper.cs @@ -64,7 +64,7 @@ public static RubyTag ParseRubyTag(string? str) getStringPropertyRegex(':', "ruby"), }); - return getMatchByStatement(str, regex, result => + return getMatchByStatement(str, regex, result => { if (result == null) return new RubyTag(); @@ -103,7 +103,7 @@ public static TimeTag ParseTimeTag(string? str) getStringPropertyRegex('#', "text"), }); - return getMatchByStatement(str, regex, result => + return getMatchByStatement(str, regex, result => { if (result == null) return new TimeTag(new TextIndex()); @@ -165,7 +165,7 @@ public static Lyric ParseLyric(string str, int? id = null) getStringPropertyRegex(':', "lyric"), }); - return getMatchByStatement(str, regex, result => + return getMatchByStatement(str, regex, result => { if (result == null) return new Lyric(); @@ -218,7 +218,7 @@ public static Singer ParseSinger(string? str) { string regex = generateRegex(id_str, Array.Empty()); - return getMatchByStatement(str, regex, result => + return getMatchByStatement(str, regex, result => { if (result == null) return new Singer().ChangeId(ElementId.Empty);