Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 4bc3c69

Browse files
Fixing null check
1 parent 2118992 commit 4bc3c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.VisualStudio/Services/UsageTracker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ async Task<UsageModel> GetCurrentReport(UsageData data)
126126
{
127127
var current = data.Reports.FirstOrDefault(x => x.Date.Date == DateTimeOffset.Now.Date);
128128

129-
if (current == null)
129+
if (Guid.Empty.Equals(current.Guid))
130130
{
131131
var guid = await service.GetUserGuid();
132132
current = UsageModel.Create(guid);

0 commit comments

Comments
 (0)