REFACTOR: Reformat code.

This commit is contained in:
2017-12-19 20:33:03 +00:00
parent 77edc7c91c
commit e6f6ace80b
704 changed files with 82627 additions and 83641 deletions

View File

@@ -59,10 +59,7 @@ namespace DiscImageChef.Filters
}
}
}
catch(Exception exception)
{
DicConsole.ErrorWriteLine("Exception {0}", exception);
}
catch(Exception exception) { DicConsole.ErrorWriteLine("Exception {0}", exception); }
}
}
@@ -76,23 +73,21 @@ namespace DiscImageChef.Filters
{
if(filter.Identify(path))
{
Filter foundFilter = (Filter)filter.GetType().GetConstructor(Type.EmptyTypes).Invoke(new object[] { });
Filter foundFilter =
(Filter)filter.GetType().GetConstructor(Type.EmptyTypes).Invoke(new object[] { });
foundFilter.Open(path);
if(foundFilter.IsOpened())
return foundFilter;
if(foundFilter.IsOpened()) return foundFilter;
}
}
else
noFilter = filter;
else noFilter = filter;
}
if(noFilter.Identify(path))
{
noFilter.Open(path);
if(noFilter.IsOpened())
return noFilter;
if(noFilter.IsOpened()) return noFilter;
}
return noFilter;
@@ -103,5 +98,4 @@ namespace DiscImageChef.Filters
return filtersList;
}
}
}
}