General refactor.

This commit is contained in:
2018-06-20 22:22:21 +01:00
parent dc1884f5d8
commit ec8b309670
93 changed files with 850 additions and 1015 deletions

View File

@@ -230,12 +230,10 @@ namespace DiscImageChef.Commands
if(options.SectorTags)
{
ulong length;
if(options.Length.ToLowerInvariant() == "all") length = inputFormat.Info.Sectors - 1;
if(options.Length.ToLowerInvariant() == "all") { }
else
{
if(!ulong.TryParse(options.Length, out length))
if(!ulong.TryParse(options.Length, out ulong _))
{
DicConsole.WriteLine("Value \"{0}\" is not a valid number for length.", options.Length);
DicConsole.WriteLine("Not decoding sectors tags");