Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Arnott <andrewarnott@gmail.com>
  • Loading branch information
filipnavara and AArnott committed Jul 28, 2021
1 parent 357099c commit a7eaba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NerdBank.GitVersioning/ManagedGit/GitPackReader.cs
Expand Up @@ -44,7 +44,7 @@ public static Stream GetObject(GitPack pack, Stream stream, long offset, string
if (type == GitPackObjectType.OBJ_OFS_DELTA)
{
var baseObjectRelativeOffset = ReadVariableLengthInteger(stream);
var baseObjectOffset = offset - baseObjectRelativeOffset;
long baseObjectOffset = offset - baseObjectRelativeOffset;

var deltaStream = new ZLibStream(stream, decompressedSize);
var baseObjectStream = pack.GetObject(baseObjectOffset, objectType);
Expand Down

0 comments on commit a7eaba9

Please sign in to comment.