mirror of
https://github.com/ppy/osu
synced 2025-02-02 03:11:58 +00:00
Remove need to trim query string
This commit is contained in:
parent
1dab363be3
commit
f1dab946ff
@ -50,13 +50,13 @@ namespace osu.Game.Online.API.Requests
|
||||
{
|
||||
StringBuilder query = new StringBuilder(@"?");
|
||||
|
||||
query.Append($@"type={scope.ToString().ToLowerInvariant()}&");
|
||||
query.Append($@"mode={ruleset.ShortName}&");
|
||||
query.Append($@"type={scope.ToString().ToLowerInvariant()}");
|
||||
query.Append($@"&mode={ruleset.ShortName}");
|
||||
|
||||
foreach (var mod in mods)
|
||||
query.Append($@"mods[]={mod.Acronym}&");
|
||||
query.Append($@"&mods[]={mod.Acronym}");
|
||||
|
||||
return query.ToString().TrimEnd('&');
|
||||
return query.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user