mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:02:55 +08:00
fix code quality issues
This commit is contained in:
parent
79f71e5181
commit
0a87b461d7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user