REFACTOR: Removed unneeded value sets.

This commit is contained in:
2017-12-21 16:07:20 +00:00
parent 37130d7599
commit 11b19434c0

View File

@@ -59,7 +59,6 @@ namespace DiscImageChef.Checksums
bool? subchannelStatus = CheckCdSectorSubChannel(subchannel); bool? subchannelStatus = CheckCdSectorSubChannel(subchannel);
bool? status = null; bool? status = null;
if(channelStatus == null && subchannelStatus == null) status = null;
if(channelStatus == false || subchannelStatus == false) status = false; if(channelStatus == false || subchannelStatus == false) status = false;
switch(channelStatus) { switch(channelStatus) {
case null when subchannelStatus == true: status = true; case null when subchannelStatus == true: status = true;
@@ -68,8 +67,6 @@ namespace DiscImageChef.Checksums
break; break;
} }
if(channelStatus == true && subchannelStatus == true) status = true;
return status; return status;
} }
case 2352: return CheckCdSectorChannel(buffer); case 2352: return CheckCdSectorChannel(buffer);