@@ -28,7 +28,7 @@ public class GitRepository : IDisposable
28
28
29
29
private readonly List < GitRepository > alternates = new List < GitRepository > ( ) ;
30
30
31
- #if DEBUG && ! NETSTANDARD
31
+ #if DEBUG
32
32
private Dictionary < GitObjectId , int > histogram = new Dictionary < GitObjectId , int > ( ) ;
33
33
#endif
34
34
@@ -524,7 +524,7 @@ public GitObjectId GetTreeEntry(GitObjectId treeId, ReadOnlySpan<byte> nodeName)
524
524
/// </returns>
525
525
public bool TryGetObjectBySha ( GitObjectId sha , string objectType , out Stream ? value )
526
526
{
527
- #if DEBUG && ! NETSTANDARD
527
+ #if DEBUG
528
528
if ( ! this . histogram . TryAdd ( sha , 1 ) )
529
529
{
530
530
this . histogram [ sha ] += 1 ;
@@ -566,7 +566,7 @@ public string GetCacheStatistics()
566
566
{
567
567
StringBuilder builder = new StringBuilder ( ) ;
568
568
569
- #if DEBUG && ! NETSTANDARD
569
+ #if DEBUG
570
570
int histogramCount = 25 ;
571
571
572
572
builder . AppendLine ( "Overall repository:" ) ;
@@ -659,7 +659,7 @@ private ReadOnlyMemory<GitPack> LoadPacks()
659
659
660
660
private static string TrimEndingDirectorySeparator ( string path )
661
661
{
662
- #if NETSTANDARD
662
+ #if NETSTANDARD2_0
663
663
if ( string . IsNullOrEmpty ( path ) || path . Length == 1 )
664
664
{
665
665
return path ;
@@ -690,7 +690,7 @@ private static bool TryConvertHexStringToByteArray(string hexString, Span<byte>
690
690
Requires . Argument ( data . Length == hexString . Length / 2 , nameof ( data ) , "Length must be exactly half that of " + nameof ( hexString ) + "." ) ;
691
691
for ( int index = 0 ; index < data . Length ; index ++ )
692
692
{
693
- #if NETCOREAPP3_1_OR_GREATER
693
+ #if ! NETSTANDARD2_0
694
694
ReadOnlySpan < char > byteValue = hexString . AsSpan ( index * 2 , 2 ) ;
695
695
if ( ! byte . TryParse ( byteValue , NumberStyles . HexNumber , CultureInfo . InvariantCulture , out data [ index ] ) )
696
696
{
0 commit comments