mirror of https://github.com/ppy/osu
Fix NRT inspections
This commit is contained in:
parent
2d745fb67e
commit
8ffd4aa82c
|
@ -257,7 +257,7 @@ public TestDownloadRequest(IBeatmapSetInfo model)
|
|||
{
|
||||
}
|
||||
|
||||
protected override string Target => null;
|
||||
protected override string Target => string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue