mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
REFACTOR: Invert 'if' statement to reduce nesting.
This commit is contained in:
@@ -56,11 +56,10 @@ namespace DiscImageChef.Core
|
||||
try
|
||||
{
|
||||
DicConsole.DebugWriteLine("Format detection", "Trying plugin {0}", imageplugin.Name);
|
||||
if(imageplugin.IdentifyImage(imageFilter))
|
||||
{
|
||||
imageFormat = imageplugin;
|
||||
break;
|
||||
}
|
||||
if(!imageplugin.IdentifyImage(imageFilter)) continue;
|
||||
|
||||
imageFormat = imageplugin;
|
||||
break;
|
||||
}
|
||||
#pragma warning disable RECS0022 // A catch clause that catches System.Exception and has an empty body
|
||||
catch { }
|
||||
@@ -75,11 +74,10 @@ namespace DiscImageChef.Core
|
||||
try
|
||||
{
|
||||
DicConsole.DebugWriteLine("Format detection", "Trying plugin {0}", imageplugin.Name);
|
||||
if(imageplugin.IdentifyImage(imageFilter))
|
||||
{
|
||||
imageFormat = imageplugin;
|
||||
break;
|
||||
}
|
||||
if(!imageplugin.IdentifyImage(imageFilter)) continue;
|
||||
|
||||
imageFormat = imageplugin;
|
||||
break;
|
||||
}
|
||||
#pragma warning disable RECS0022 // A catch clause that catches System.Exception and has an empty body
|
||||
catch { }
|
||||
|
||||
Reference in New Issue
Block a user