Skip to content

Commit 7c8ec1e

Browse files
DYN-9958 WebView2 Cache Folder Location Code Review
string interpolation instead of String.Format for better readability
1 parent 2a6b092 commit 7c8ec1e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/DynamoCoreWpf/UI/HostStartup.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,14 @@ public static string GetUserDirectory()
6262
{
6363
var version = Current.HostInfo.Value.HostVersion;
6464

65-
return Path.Combine(Current.UserDataFolder,
66-
String.Format("{0}.{1}", version.Major, version.Minor));
65+
return Path.Combine(Current.UserDataFolder,$"{version.Major}.{version.Minor}");
6766
}
6867
else
6968
{
7069
var version = AssemblyHelper.GetDynamoVersion();
7170

7271
var folder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
73-
return Path.Combine(Path.Combine(folder, Configurations.DynamoAsString, "Dynamo Core"),
74-
String.Format("{0}.{1}", version.Major, version.Minor));
72+
return Path.Combine(Path.Combine(folder, Configurations.DynamoAsString, "Dynamo Core"), $"{version.Major}.{version.Minor}");
7573
}
7674

7775
}

0 commit comments

Comments
 (0)