We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f1cf8b commit 480626dCopy full SHA for 480626d
src/NerdBank.GitVersioning/ManagedGit/ZLibStream.cs
@@ -5,7 +5,6 @@
5
using System.Buffers;
6
using System.IO;
7
using System.IO.Compression;
8
-using System.Linq;
9
using System.Threading;
10
using System.Threading.Tasks;
11
@@ -59,7 +58,7 @@ public ZLibStream(Stream stream, long length = -1)
59
58
60
if (zlibHeader[0] != 0x78 || (zlibHeader[1] != 0x01 && zlibHeader[1] != 0x9C && zlibHeader[1] != 0x5E && zlibHeader[1] != 0xDA))
61
{
62
- throw new GitException($"Invalid zlib header {string.Join(" ", zlibHeader.ToArray().Select(b => $"{b:X2}"))}");
+ throw new GitException($"Invalid zlib header {zlibHeader[0]:X2} {zlibHeader[1]:X2}");
63
}
64
65
0 commit comments