mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +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()
|
||||
{
|
||||
if (Metadata?.BackgroundFile == null)
|
||||
if (string.IsNullOrEmpty(Metadata?.BackgroundFile))
|
||||
return null;
|
||||
|
||||
try
|
||||
|
@ -28,7 +28,7 @@ namespace osu.Game.Rulesets.Edit.Checks
|
||||
public IEnumerable<Issue> Run(BeatmapVerifierContext context)
|
||||
{
|
||||
string audioFile = context.Beatmap.Metadata?.AudioFile;
|
||||
if (audioFile == null)
|
||||
if (string.IsNullOrEmpty(audioFile))
|
||||
yield break;
|
||||
|
||||
var track = context.WorkingBeatmap.Track;
|
||||
|
Loading…
Reference in New Issue
Block a user