mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Add comments to nuget.config file restore
This commit is contained in:
@@ -267,8 +267,8 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
using (var backup = File.OpenRead(backupNugetConfig))
|
||||
using (var current = File.OpenWrite(nugetConfigPath))
|
||||
{
|
||||
current.SetLength(0);
|
||||
backup.CopyTo(current);
|
||||
current.SetLength(0); // Truncate file
|
||||
backup.CopyTo(current); // Restore original content
|
||||
}
|
||||
|
||||
logger.LogInfo("Deleting backup nuget.config file");
|
||||
|
||||
Reference in New Issue
Block a user