REFACTOR: Use string interpolation expression.

This commit is contained in:
2017-12-21 17:58:51 +00:00
parent a895700757
commit 4e6e8f340a
182 changed files with 766 additions and 1256 deletions

View File

@@ -185,7 +185,7 @@ namespace DiscImageChef.Decoders.SCSI
case ScsiDefinitions.SCSI1: return "SCSI-1";
case ScsiDefinitions.SCSI2: return "SCSI-2";
case ScsiDefinitions.SCSI3: return "SCSI-3";
default: return string.Format("Unknown definition code {0}", (byte)definition);
default: return $"Unknown definition code {(byte)definition}";
}
}
@@ -510,7 +510,7 @@ namespace DiscImageChef.Decoders.SCSI
protocol = "USB Attached SCSI";
break;
default:
protocol = string.Format("unknown code {0}", (byte)descriptor.ProtocolIdentifier);
protocol = $"unknown code {(byte)descriptor.ProtocolIdentifier}";
break;
}