REFACTOR: Convert 'if' statement to 'switch' statement.

This commit is contained in:
2017-12-21 04:43:29 +00:00
parent df2fb651e4
commit 9cd1869d1d
55 changed files with 4429 additions and 4192 deletions

View File

@@ -197,8 +197,10 @@ namespace DiscImageChef.Interop
case PlatformID.MacOSX:
if(Environment.OSVersion.Version.Major == 1)
{
if(Environment.OSVersion.Version.Minor == 3) return "10.0";
if(Environment.OSVersion.Version.Minor == 4) return "10.1";
switch(Environment.OSVersion.Version.Minor) {
case 3: return "10.0";
case 4: return "10.1";
}
goto default;
}