1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 13:22:55 +08:00

reverse ternary operator

This commit is contained in:
Davran Dilshat 2021-08-30 10:11:41 +01:00
parent 90c313e2ad
commit 1aeae2b8c8

View File

@ -118,7 +118,7 @@ namespace osu.Game.Overlays
if (fetchOnline)
{
userReq = user.Username != null ? new GetUserRequest(user.Username) : new GetUserRequest(user.Id);
userReq = user.Id > 1 ? new GetUserRequest(user.Id) : new GetUserRequest(user.Username);
userReq.Success += userLoadComplete;
API.Queue(userReq);
}