Move the null check in the outside.

AddCursor() should not accept the null value.
This commit is contained in:
andy840119
2022-06-30 23:29:49 +08:00
parent a5b1f1a688
commit 48047f2e58
3 changed files with 8 additions and 7 deletions

View File

@ -112,7 +112,8 @@ namespace osu.Game.Online.API.Requests
req.AddParameter("nsfw", ExplicitContent == SearchExplicit.Show ? "true" : "false");
req.AddCursor(cursor);
if (cursor != null)
req.AddCursor(cursor);
return req;
}