Skip to content

Commit 35a11f5

Browse files
filipnavaraAArnott
authored andcommitted
Fix flipped condition
1 parent ea9517b commit 35a11f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ private static bool TryConvertHexStringToByteArray(string hexString, out byte[]?
686686
for (int index = 0; index < data.Length; index++)
687687
{
688688
string byteValue = hexString.Substring(index * 2, 2);
689-
if (byte.TryParse(byteValue, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out data[index]))
689+
if (!byte.TryParse(byteValue, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out data[index]))
690690
{
691691
data = null;
692692
return false;

0 commit comments

Comments
 (0)