Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pathartl committed Jun 24, 2024
1 parent 9bc0a1d commit b89de6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/SharpCompress/Common/Zip/StreamingZipHeaderFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ internal IEnumerable<ZipHeader> ReadStreamHeader(Stream stream)
ZipHeader? header;
var reader = new BinaryReader(rewindableStream);
uint headerBytes = 0;
if (_lastEntryHeader != null && FlagUtility.HasFlag(_lastEntryHeader.Flags, HeaderFlags.UsePostDataDescriptor))
if (
_lastEntryHeader != null
&& FlagUtility.HasFlag(_lastEntryHeader.Flags, HeaderFlags.UsePostDataDescriptor)
)
{
if (_lastEntryHeader.Part is null)
{
Expand Down Expand Up @@ -83,7 +86,9 @@ ref rewindableStream
if (_lastEntryHeader.Part is null)
continue;

reader = ((StreamingZipFilePart)_lastEntryHeader.Part).FixStreamedFileLocation(ref rewindableStream);
reader = ((StreamingZipFilePart)_lastEntryHeader.Part).FixStreamedFileLocation(
ref rewindableStream
);

var pos = rewindableStream.CanSeek ? (long?)rewindableStream.Position : null;

Expand Down
4 changes: 2 additions & 2 deletions src/SharpCompress/Common/Zip/ZipHeaderFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ ArchiveEncoding archiveEncoding
case POST_DATA_DESCRIPTOR:
{
if (
_lastEntryHeader != null &&
FlagUtility.HasFlag(
_lastEntryHeader != null
&& FlagUtility.HasFlag(
_lastEntryHeader.NotNull().Flags,
HeaderFlags.UsePostDataDescriptor
)
Expand Down

0 comments on commit b89de6c

Please sign in to comment.