Skip to content

Commit

Permalink
Remove unnecessary generic type.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Dec 7, 2024
1 parent 82d6e8d commit b208760
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Karaoke.Architectures/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private static string getRelativeNamespace(Project.ProjectAttribute project, str

public static IEnumerable<MethodMember> GetMethodMembersContainsName(this IType type, string name)
{
return type.GetMethodMembers().WhereNameContains<MethodMember>(name);
return type.GetMethodMembers().WhereNameContains(name);
}

public static IEnumerable<TType> WhereNameContains<TType>(this IEnumerable<TType> source, string name) where TType : IHasName
Expand Down
8 changes: 4 additions & 4 deletions osu.Game.Rulesets.Karaoke.Tests/Helper/TestCaseTagHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static RubyTag ParseRubyTag(string? str)
getStringPropertyRegex(':', "ruby"),
});

return getMatchByStatement<RubyTag>(str, regex, result =>
return getMatchByStatement(str, regex, result =>
{
if (result == null)
return new RubyTag();
Expand Down Expand Up @@ -103,7 +103,7 @@ public static TimeTag ParseTimeTag(string? str)
getStringPropertyRegex('#', "text"),
});

return getMatchByStatement<TimeTag>(str, regex, result =>
return getMatchByStatement(str, regex, result =>
{
if (result == null)
return new TimeTag(new TextIndex());
Expand Down Expand Up @@ -165,7 +165,7 @@ public static Lyric ParseLyric(string str, int? id = null)
getStringPropertyRegex(':', "lyric"),
});

return getMatchByStatement<Lyric>(str, regex, result =>
return getMatchByStatement(str, regex, result =>
{
if (result == null)
return new Lyric();
Expand Down Expand Up @@ -218,7 +218,7 @@ public static Singer ParseSinger(string? str)
{
string regex = generateRegex(id_str, Array.Empty<string>());

return getMatchByStatement<Singer>(str, regex, result =>
return getMatchByStatement(str, regex, result =>
{
if (result == null)
return new Singer().ChangeId(ElementId.Empty);
Expand Down

0 comments on commit b208760

Please sign in to comment.