We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
StringBuilder
GetRestoreArgs
1 parent b6c74fe commit 284f612Copy full SHA for 284f612
csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DotNet.cs
@@ -2,7 +2,7 @@
2
using System.Collections.Generic;
3
using System.IO;
4
using System.Linq;
5
-
+using System.Text;
6
using Newtonsoft.Json.Linq;
7
8
using Semmle.Util;
@@ -71,10 +71,13 @@ private string GetRestoreArgs(RestoreSettings restoreSettings)
71
// the configuration file(s).
72
if (restoreSettings.Sources != null)
73
{
74
+ var feedArgs = new StringBuilder();
75
foreach (string source in restoreSettings.Sources)
76
- args += $" -s {source}";
77
+ feedArgs.Append($" -s {source}");
78
}
79
+
80
+ args += feedArgs.ToString();
81
82
83
if (restoreSettings.ForceReevaluation)
0 commit comments