REFACTOR: Expression is always 'true' or always 'false'.

This commit is contained in:
2017-12-21 17:34:47 +00:00
parent ccd9930884
commit 9a404acef4
19 changed files with 104 additions and 161 deletions

View File

@@ -448,7 +448,7 @@ namespace DiscImageChef.DiscImages
if(isDvd)
{
// TODO: Second layer
if(header.structuresOffset >= 0)
if(header.structuresOffset > 0)
{
byte[] structures = new byte[4100];
stream.Seek(header.structuresOffset, SeekOrigin.Begin);

View File

@@ -919,7 +919,7 @@ namespace DiscImageChef.DiscImages
currentLocator++;
}
if(!locatorFound || parentPath == null)
if(!locatorFound)
throw new
FileNotFoundException("(VirtualPC plugin): Cannot find parent file for differencing disk image");