Skip to content

Commit

Permalink
optimize string concatenation code
Browse files Browse the repository at this point in the history
  • Loading branch information
huhouhua committed Oct 25, 2023
1 parent c0fc56e commit 2397354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ArgoCD.Client.Test/Utilities/TemplateString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static string RenderEnvironment(string str)
{
foreach (DictionaryEntry environmentVariable in Environment.GetEnvironmentVariables())
{
string text = "${E_" + environmentVariable.Key?.ToString() + "}";
string text = string.Concat("${E_", environmentVariable.Key?.ToString(),"}");
if (-1 != str.IndexOf(text, StringComparison.Ordinal))
{
str = str.Replace(text, (string)environmentVariable.Value);
Expand Down

0 comments on commit 2397354

Please sign in to comment.