From bfa275ad1c32e0cda7eab918a8de14d7269f0491 Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Sun, 25 Jun 2017 10:51:54 +0800 Subject: [PATCH] Change some small classes to struct to avoid potential null check. --- osu.Game/Users/UserStatistics.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Users/UserStatistics.cs b/osu.Game/Users/UserStatistics.cs index 7e3e5db983..05f3d65f30 100644 --- a/osu.Game/Users/UserStatistics.cs +++ b/osu.Game/Users/UserStatistics.cs @@ -10,7 +10,7 @@ namespace osu.Game.Users [JsonProperty(@"level")] public LevelInfo Level; - public class LevelInfo + public struct LevelInfo { [JsonProperty(@"current")] public int Current; @@ -49,7 +49,7 @@ namespace osu.Game.Users [JsonProperty(@"grade_counts")] public Grades GradesCount; - public class Grades + public struct Grades { [JsonProperty(@"ss")] public int SS;