mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Use StringBuilder for feed arguments in GetRestoreArgs
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
using System.Text;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
using Semmle.Util;
|
||||
@@ -71,10 +71,13 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
// the configuration file(s).
|
||||
if (restoreSettings.Sources != null)
|
||||
{
|
||||
var feedArgs = new StringBuilder();
|
||||
foreach (string source in restoreSettings.Sources)
|
||||
{
|
||||
args += $" -s {source}";
|
||||
feedArgs.Append($" -s {source}");
|
||||
}
|
||||
|
||||
args += feedArgs.ToString();
|
||||
}
|
||||
|
||||
if (restoreSettings.ForceReevaluation)
|
||||
|
||||
Reference in New Issue
Block a user