Skip to content

Commit

Permalink
Can use string.Empty() instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Jul 13, 2023
1 parent 877db56 commit 4c516ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void TestUpdateTranslateWithNullText()
}
});

TriggerHandlerChanged(c => c.UpdateTranslate(new CultureInfo(17), ""));
TriggerHandlerChanged(c => c.UpdateTranslate(new CultureInfo(17), string.Empty));

AssertSelectedHitObject(h =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public DrawableLyricListItem(Lyric? item)

public override IEnumerable<LocalisableString> FilterTerms => new[]
{
new LocalisableString(Model?.Text ?? ""),
new LocalisableString(Model?.Text ?? string.Empty),
};

protected override void CreateDisplayContent(OsuTextFlowContainer textFlowContainer, Lyric? model)
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Karaoke/Screens/Edit/IssueSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ private LocalisableString getTextByIssueType(IssueType issueType) =>
};

private Colour4 getColourByIssueType(IssueType issueType) =>
new IssueTemplate(new EmptyCheck(), issueType, "").Colour;
new IssueTemplate(new EmptyCheck(), issueType, string.Empty).Colour;

[BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider)
Expand Down

0 comments on commit 4c516ac

Please sign in to comment.