mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:02:53 +08:00
Fix another couple of cases of incorrect string null/empty checking
This commit is contained in:
parent
41854f2e16
commit
1e73b09e57
@ -149,7 +149,7 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
protected override Texture GetBackground()
|
protected override Texture GetBackground()
|
||||||
{
|
{
|
||||||
if (Metadata?.BackgroundFile == null)
|
if (string.IsNullOrEmpty(Metadata?.BackgroundFile))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -28,7 +28,7 @@ namespace osu.Game.Rulesets.Edit.Checks
|
|||||||
public IEnumerable<Issue> Run(BeatmapVerifierContext context)
|
public IEnumerable<Issue> Run(BeatmapVerifierContext context)
|
||||||
{
|
{
|
||||||
string audioFile = context.Beatmap.Metadata?.AudioFile;
|
string audioFile = context.Beatmap.Metadata?.AudioFile;
|
||||||
if (audioFile == null)
|
if (string.IsNullOrEmpty(audioFile))
|
||||||
yield break;
|
yield break;
|
||||||
|
|
||||||
var track = context.WorkingBeatmap.Track;
|
var track = context.WorkingBeatmap.Track;
|
||||||
|
Loading…
Reference in New Issue
Block a user