1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Remove unnecessary json settings override

This commit is contained in:
Salman Ahmed 2021-02-09 08:56:01 +03:00
parent 1466f36649
commit 62514f23b5

View File

@ -267,9 +267,7 @@ namespace osu.Game.Users
if (!(otherProperties.TryGetValue($"statistics_{ruleset.ShortName}", out var token)))
return new UserStatistics();
var settings = JsonSerializableExtensions.CreateGlobalSettings();
settings.DefaultValueHandling = DefaultValueHandling.Include;
return token.ToObject<UserStatistics>(JsonSerializer.Create(settings));
return token.ToObject<UserStatistics>(JsonSerializer.Create(JsonSerializableExtensions.CreateGlobalSettings()));
}
public override string ToString() => Username;