Skip to content

Commit 486b396

Browse files
SLVS-2741 Fix resharper error in CommitWrapper.cs (#6541)
1 parent 2ba3971 commit 486b396

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ConnectedMode.UnitTests/LibGit2SharpWrappers/CommitWrapper.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ namespace SonarLint.VisualStudio.ConnectedMode.UnitTests.LibGit2SharpWrappers
2424
{
2525
internal class CommitWrapper : Commit
2626
{
27+
private readonly ObjectId id;
28+
2729
internal CommitWrapper(byte commitID)
2830
{
2931
var bytes = new byte[20];
3032
bytes[0] = commitID;
3133

32-
Id = new ObjectId(bytes);
34+
id = new ObjectId(bytes);
3335
}
3436

35-
public override ObjectId Id { get; }
37+
public override ObjectId Id => id;
3638
}
3739
}

0 commit comments

Comments
 (0)