1
0
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:
Dean Herbert 2020-11-09 12:23:29 +09:00
parent 690e69bcc6
commit cfb42037cf

View File

@ -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);
}
}