Skip to content

Commit

Permalink
Resolve Pipeline build errors (#8569)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored Jul 8, 2024
1 parent 2660560 commit 1ec6beb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ static async Task HandlePackageFileParsing(Stream stream, FileInfo packageFilePa
ZipArchive? zipArchive = null;
Stream? dllStream = stream;
Stream? docStream = null;
List<DependencyInfo>? dependencies = null;
string dependencyFilesTempDir = null;
List<DependencyInfo>? dependencies = new List<DependencyInfo>();
string? dependencyFilesTempDir = null;

try
{
Expand Down Expand Up @@ -85,7 +85,6 @@ static async Task HandlePackageFileParsing(Stream stream, FileInfo packageFilePa
using var nuspecStream = nuspecEntry.Open();
var document = XDocument.Load(nuspecStream);
var dependencyElements = document.Descendants().Where(e => e.Name.LocalName == "dependency");
dependencies = new List<DependencyInfo>();
dependencies.AddRange(
dependencyElements.Select(dependency => new DependencyInfo(
dependency.Attribute("id")?.Value,
Expand Down

0 comments on commit 1ec6beb

Please sign in to comment.