Add comments to nuget.config file restore

This commit is contained in:
Tamas Vajk
2024-02-12 11:59:19 +01:00
parent 5be3993405
commit 70b6ae6876

View File

@@ -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");