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

@@ -204,8 +204,8 @@ namespace DiscImageChef.DiscImages
int cylinder = t / heads;
int head = topHead ? 1 : t % heads;
string trackfile = Directory.Exists(basename)
? Path.Combine(basename, string.Format("{0:D2}.{1:D1}.raw", cylinder, head))
: string.Format("{0}{1:D2}.{2:D1}.raw", basename, cylinder, head);
? Path.Combine(basename, $"{cylinder:D2}.{head:D1}.raw")
: $"{basename}{cylinder:D2}.{head:D1}.raw";
if(!File.Exists(trackfile))
if(cylinder == 0)