Skip to content

Commit

Permalink
CSharpier cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Erior committed Sep 23, 2023
1 parent bc3bb2d commit 4fd8c77
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/SharpCompress/Common/SevenZip/SevenZipFilePart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public CompressionType CompressionType

internal CompressionType GetCompression()
{
if( Header.IsDir ) return CompressionType.None;
if (Header.IsDir)
return CompressionType.None;

var coder = Folder!._coders.First();
switch (coder._methodId._id)
Expand All @@ -99,5 +100,7 @@ internal CompressionType GetCompression()
}

internal bool IsEncrypted =>
Header.IsDir ? false : Folder!._coders.FindIndex(c => c._methodId._id == CMethodId.K_AES_ID) != -1;
Header.IsDir
? false
: Folder!._coders.FindIndex(c => c._methodId._id == CMethodId.K_AES_ID) != -1;
}

0 comments on commit 4fd8c77

Please sign in to comment.