Fix NRT inspections

This commit is contained in:
Bartłomiej Dach 2024-08-30 13:41:34 +02:00
parent 2d745fb67e
commit 8ffd4aa82c
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

View File

@ -257,7 +257,7 @@ public TestDownloadRequest(IBeatmapSetInfo model)
{
}
protected override string Target => null;
protected override string Target => string.Empty;
}
}
}

View File

@ -4,6 +4,7 @@
#nullable disable
using System;
using System.Diagnostics;
using System.IO;
using osu.Framework.IO.Network;
@ -34,7 +35,11 @@ protected override WebRequest CreateWebRequest()
return request;
}
private void request_Progress(long current, long total) => API.Schedule(() => Progressed?.Invoke(current, total));
private void request_Progress(long current, long total)
{
Debug.Assert(API != null);
API.Schedule(() => Progressed?.Invoke(current, total));
}
protected void TriggerSuccess(string filename)
{