diff --git a/Aaru.Images/CHD/Properties.cs b/Aaru.Images/CHD/Properties.cs index bcf7ef82e..eb791b5b1 100644 --- a/Aaru.Images/CHD/Properties.cs +++ b/Aaru.Images/CHD/Properties.cs @@ -34,7 +34,6 @@ using System; using System.Collections.Generic; using System.Linq; using Aaru.CommonTypes; -using Aaru.CommonTypes.Exceptions; using Aaru.CommonTypes.Structs; using Schemas; @@ -47,37 +46,17 @@ namespace Aaru.DiscImages /// public string Name => "MAME Compressed Hunks of Data"; /// - public Guid Id => new Guid("0D50233A-08BD-47D4-988B-27EAA0358597"); + public Guid Id => new("0D50233A-08BD-47D4-988B-27EAA0358597"); /// public string Format => "Compressed Hunks of Data"; /// public string Author => "Natalia Portillo"; /// - public List Partitions - { - get - { - if(_isHdd) - throw new - FeaturedNotSupportedByDiscImageException("Cannot access optical tracks on a hard disk image"); - - return _partitions; - } - } + public List Partitions => _isHdd ? null : _partitions; /// - public List Tracks - { - get - { - if(_isHdd) - throw new - FeaturedNotSupportedByDiscImageException("Cannot access optical tracks on a hard disk image"); - - return _tracks.Values.ToList(); - } - } + public List Tracks => _isHdd ? null : _tracks.Values.ToList(); /// public List Sessions @@ -85,8 +64,7 @@ namespace Aaru.DiscImages get { if(_isHdd) - throw new - FeaturedNotSupportedByDiscImageException("Cannot access optical sessions on a hard disk image"); + return null; throw new NotImplementedException(); }