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

Commit 73e52e1

Browse files
Fixing boxing operation
1 parent 60f802c commit 73e52e1

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
@@ -49,7 +49,7 @@ public async Task IncrementCounter(Expression<Func<UsageModel, int>> counter)
4949
var data = await service.ReadLocalData();
5050
var usage = await GetCurrentReport(data);
5151
// because Model is a struct, it needs to be boxed in order for reflection to work
52-
object model = usage.Model;
52+
object model = usage;
5353
var property = (MemberExpression)counter.Body;
5454
var propertyInfo = (PropertyInfo)property.Member;
5555
log.Verbose("Increment counter {Name}", propertyInfo.Name);

0 commit comments

Comments
 (0)