mirror of https://github.com/ppy/osu
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 @@ public GetUsersRequest(int[] userIds)
|
|||
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