Skip to content

Commit

Permalink
Update CICD.Tools.CatalogUpload.Lib/CatalogMetaData.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Michiel Oda <97458010+MichielOda@users.noreply.github.com>
  • Loading branch information
janstaelensskyline and MichielOda authored Oct 8, 2024
1 parent d14b97d commit 504d4e8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions CICD.Tools.CatalogUpload.Lib/CatalogMetaData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,9 @@ public bool SearchAndApplyCatalogYaml(IFileSystem fs, string startPath)

if (!String.IsNullOrWhiteSpace(p.Short_description)) ShortDescription = p.Short_description;
if (!String.IsNullOrWhiteSpace(p.Source_code_url)) SourceCodeUri = p.Source_code_url;
if (p.Owners != null)
{
p.Owners.ForEach(o => { Owners.Add(new CatalogOwner() { Name = o.Name, Email = o.Email, Url = o.Url }); });
}

if (p.Tags != null)
{
p.Tags.ForEach(Tags.Add);
}
p.Owners?.ForEach(o => { Owners.Add(new CatalogOwner { Name = o.Name, Email = o.Email, Url = o.Url }); });
p.Tags?.AddRange(Tags);
}

return true;
Expand Down

0 comments on commit 504d4e8

Please sign in to comment.