1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 19:27:26 +08:00

fix code quality issues

This commit is contained in:
Davran Dilshat 2021-08-31 14:11:37 +01:00
parent 79f71e5181
commit 0a87b461d7

View File

@ -76,7 +76,7 @@ namespace osu.Game.Scoring
}
}
private Dictionary<string, User> previouslyLookedUpUsernames = new Dictionary<string, User>();
private readonly Dictionary<string, User> previouslyLookedUpUsernames = new Dictionary<string, User>();
protected override Task Populate(ScoreInfo model, ArchiveReader archive, CancellationToken cancellationToken = default)
{
@ -90,10 +90,10 @@ namespace osu.Game.Scoring
}
var request = new GetUserRequest(model.UserString);
request.Success += user =>
request.Success += u =>
{
model.UserID = user.Id;
previouslyLookedUpUsernames.TryAdd(model.UserString, user);
model.UserID = u.Id;
previouslyLookedUpUsernames.TryAdd(model.UserString, u);
};
api.Queue(request);