Skip to content

Commit 1aaf064

Browse files
authored
Merge pull request #4569 from SimonCropp/use-AppendJoin
GH4612: use AppendJoin
2 parents 7032a27 + 220c19a commit 1aaf064

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Cake.Core/Extensions/MethodInfoExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static string GetSignature(this MethodInfo method,
4141
signature = isParams ? string.Concat("params ", signature) : signature;
4242
parameterList[i] = signature;
4343
}
44-
builder.Append(string.Join(", ", parameterList));
44+
builder.AppendJoin(", ", parameterList);
4545
builder.Append(')');
4646
return builder.ToString();
4747
}

src/Cake.Core/Scripting/CodeGen/MethodAliasGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private static void BuildGenericArguments(MethodInfo method, StringBuilder build
170170
{
171171
genericArguments.Add(argument.Name);
172172
}
173-
builder.Append(string.Join(", ", genericArguments));
173+
builder.AppendJoin(", ", genericArguments);
174174
builder.Append('>');
175175
}
176176

0 commit comments

Comments
 (0)