Skip to content

Commit

Permalink
code formatted using csharpier
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprabhat99 authored Jul 16, 2024
1 parent 188a426 commit 004e094
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SharpCompress/Archives/IArchiveExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ public static void ExtractToDirectory(
if (entry.IsDirectory)
{
var dirPath = Path.Combine(destination, entry.Key.NotNull("Entry Key is null"));
if (Path.GetDirectoryName(dirPath + "/") is { } emptyDirectory && seenDirectories.Add(dirPath))
if (
Path.GetDirectoryName(dirPath + "/") is { } emptyDirectory
&& seenDirectories.Add(dirPath)
)
{
Directory.CreateDirectory(emptyDirectory);
}
Expand Down

0 comments on commit 004e094

Please sign in to comment.