Skip to content

Commit 616ab06

Browse files
committed
fixup! Don't crash the test runner
1 parent 3b84e2d commit 616ab06

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

LibGit2Sharp/Core/GitBufReadStream.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ namespace LibGit2Sharp.Core
1010
/// </summary>
1111
internal class GitBufReadStream : UnmanagedMemoryStream
1212
{
13-
private readonly GitBuf gitBuf;
14-
1513
internal GitBufReadStream(IntPtr gitBufPointer)
1614
: this(gitBufPointer.MarshalAs<GitBuf>())
1715
{ }
@@ -21,9 +19,7 @@ private unsafe GitBufReadStream(GitBuf gitBuf)
2119
ConvertToLong(gitBuf.size),
2220
ConvertToLong(gitBuf.asize),
2321
FileAccess.Read)
24-
{
25-
this.gitBuf = gitBuf;
26-
}
22+
{ }
2723

2824
private static long ConvertToLong(UIntPtr len)
2925
{

0 commit comments

Comments
 (0)