Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 616ce61

Browse files
Fixing bug and removing useless log messages
1 parent 337877b commit 616ce61

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/GitHub.Api/Metrics/UsageModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class Usage
1717

1818
public class UsageModel
1919
{
20-
private List<Usage> reports;
20+
private List<Usage> reports = new List<Usage>();
2121

2222
public IList<Usage> Reports
2323
{

src/GitHub.Api/Metrics/UsageTracker.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ private UsageStore LoadUsage()
5151
if (json != null)
5252
{
5353
result = SimpleJson.DeserializeObject<UsageStore>(json);
54-
if (result.Model == null)
55-
{
56-
Logger.Warning("Model is Null");
57-
}
58-
59-
if (result.Model.Reports == null)
60-
{
61-
Logger.Warning("Reports is Null");
62-
}
6354
}
6455
else
6556
{

0 commit comments

Comments
 (0)