mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-23 23:45:14 +00:00
Minor #if fixes
This commit is contained in:
@@ -59,7 +59,7 @@ internal sealed partial class TarHeader
|
||||
int splitIndex = -1;
|
||||
for (int i = 0; i < dirSeps.Count; i++)
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
#if NET5_0_OR_GREATER
|
||||
int count = ArchiveEncoding
|
||||
.GetEncoding()
|
||||
.GetByteCount(fullName.AsSpan(0, dirSeps[i]));
|
||||
|
||||
@@ -89,7 +89,7 @@ internal sealed partial class TarHeader
|
||||
int splitIndex = -1;
|
||||
for (int i = 0; i < dirSeps.Count; i++)
|
||||
{
|
||||
#if NET6_0_OR_GREATER
|
||||
#if NET5_0_OR_GREATER
|
||||
int count = ArchiveEncoding
|
||||
.GetEncoding()
|
||||
.GetByteCount(fullName.AsSpan(0, dirSeps[i]));
|
||||
|
||||
@@ -28,7 +28,7 @@ public static class StreamExtensions
|
||||
public Task SkipAsync(CancellationToken cancellationToken = default)
|
||||
{
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
#if NET6_0_OR_GREATER
|
||||
#if NET5_0_OR_GREATER
|
||||
return stream.CopyToAsync(Stream.Null, cancellationToken);
|
||||
#else
|
||||
return stream.CopyToAsync(Stream.Null);
|
||||
|
||||
Reference in New Issue
Block a user