Skip to content

Commit

Permalink
Fix flipped condition
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara authored and AArnott committed Jun 12, 2021
1 parent ea9517b commit 35a11f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NerdBank.GitVersioning/ManagedGit/GitRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ private static bool TryConvertHexStringToByteArray(string hexString, out byte[]?
for (int index = 0; index < data.Length; index++)
{
string byteValue = hexString.Substring(index * 2, 2);
if (byte.TryParse(byteValue, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out data[index]))
if (!byte.TryParse(byteValue, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out data[index]))
{
data = null;
return false;
Expand Down

0 comments on commit 35a11f5

Please sign in to comment.