Skip to content

Commit 0a4a324

Browse files
committed
Using .NET method to create arguments string now
1 parent 97b20df commit 0a4a324

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

DeadLock/Forms/FrmSettings.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,7 @@ private void SaveSettings()
251251
/// <param name="args">A list of arguments.</param>
252252
private static void StartRegManager(IReadOnlyList<string> args)
253253
{
254-
string a = "";
255-
for (int i = 0; i < args.Count; i++)
256-
{
257-
a += args[i];
258-
if (i != args.Count - 1)
259-
{
260-
a += " ";
261-
}
262-
}
254+
string a = string.Join(" ", args);
263255
Process process = new Process
264256
{
265257
StartInfo =

0 commit comments

Comments
 (0)