Skip to content

Commit

Permalink
Resharpier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Erior committed Dec 4, 2023
1 parent ca49176 commit 7f6f7b1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/SharpCompress/Common/Rar/RarVolume.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using SharpCompress.Common.Rar.Headers;
using SharpCompress.IO;
using SharpCompress.Readers;
Expand Down Expand Up @@ -70,11 +71,7 @@ internal IEnumerable<RarFilePart> GetVolumeFileParts()
var part = CreateFilePart(lastMarkHeader!, fh);
var buffer = new byte[fh.CompressedSize];
part.GetCompressedStream().Read(buffer, 0, buffer.Length);
Comment = System.Text.Encoding.UTF8.GetString(
buffer,
0,
buffer.Length - 1
);
Comment = Encoding.UTF8.GetString(buffer, 0, buffer.Length - 1);
}
}
break;
Expand Down

0 comments on commit 7f6f7b1

Please sign in to comment.