1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 17:02:57 +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))) if (!(otherProperties.TryGetValue($"statistics_{ruleset.ShortName}", out var token)))
return new UserStatistics(); return new UserStatistics();
var settings = JsonSerializableExtensions.CreateGlobalSettings(); return token.ToObject<UserStatistics>(JsonSerializer.Create(JsonSerializableExtensions.CreateGlobalSettings()));
settings.DefaultValueHandling = DefaultValueHandling.Include;
return token.ToObject<UserStatistics>(JsonSerializer.Create(settings));
} }
public override string ToString() => Username; public override string ToString() => Username;