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
1 changed files with 1 additions and 2 deletions

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