mirror of
https://github.com/oliverbooth/fdup.git
synced 2024-12-05 02:28:47 +00:00
style: reduce redundant nesting
This commit is contained in:
parent
16eb21e879
commit
dd683c2bf3
@ -33,17 +33,17 @@ internal sealed class ListCommand : AsyncCommand<ListSettings>
|
|||||||
{
|
{
|
||||||
int fileCount = files.Count;
|
int fileCount = files.Count;
|
||||||
|
|
||||||
if (fileCount > 1)
|
if (fileCount <= 1)
|
||||||
{
|
continue;
|
||||||
duplicates += fileCount;
|
|
||||||
AnsiConsole.MarkupLineInterpolated($"Found [cyan]{fileCount}[/] identical files");
|
|
||||||
AnsiConsole.MarkupLineInterpolated($"SHA512 [green]{hash}[/]:");
|
|
||||||
|
|
||||||
foreach (FileInfo file in files)
|
duplicates += fileCount;
|
||||||
AnsiConsole.MarkupLineInterpolated($"- {file.FullName}");
|
AnsiConsole.MarkupLineInterpolated($"Found [cyan]{fileCount}[/] identical files");
|
||||||
|
AnsiConsole.MarkupLineInterpolated($"{settings.Algorithm.Humanize()} [green]{hash}[/]:");
|
||||||
|
|
||||||
AnsiConsole.WriteLine();
|
foreach (FileInfo file in files)
|
||||||
}
|
AnsiConsole.MarkupLineInterpolated($"- {file.FullName}");
|
||||||
|
|
||||||
|
AnsiConsole.WriteLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (duplicates == 0)
|
if (duplicates == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user