mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Refactor request string logic to avoid linq usage
This commit is contained in:
parent
690e69bcc6
commit
cfb42037cf
@ -2,7 +2,6 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace osu.Game.Online.API.Requests
|
||||
{
|
||||
@ -20,6 +19,6 @@ namespace osu.Game.Online.API.Requests
|
||||
this.userIds = userIds;
|
||||
}
|
||||
|
||||
protected override string Target => $@"users/?{userIds.Select(u => $"ids[]={u}&").Aggregate((a, b) => a + b)}";
|
||||
protected override string Target => "users/?ids[]=" + string.Join("&ids[]=", userIds);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user