Skip to content

Commit

Permalink
Code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson-tomo committed Jan 30, 2024
1 parent d06386a commit 39b25f7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions CycloneDX/Services/NugetV3Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,50 +330,50 @@ private static Component SetupComponentProperties(Component component, NuspecMod
{
releaseNoteType = "patch";
}
component.ReleaseNotes = new ReleaseNotes()
component.ReleaseNotes = new ReleaseNotes
{
Type = releaseNoteType,
Title = version.ToString(),
Tags = nuspecModel.nuspecReader.GetTags().Split(",").ToList(),
Notes = new List<Note>()
Notes = new List<Note>
{
new Note()
new Note
{
Text = new AttachedText(){
Text = new AttachedText{
Content = nuspecModel.nuspecReader.GetReleaseNotes()
}
}
}
};

var properties = new List<Property>()
var properties = new List<Property>
{
new Property()
new Property
{
Name = "language",
Value = nuspecModel.nuspecReader.GetLanguage()
},
new Property()
new Property
{
Name = "minclientVersion",
Value = nuspecModel.nuspecReader.GetMinClientVersion().Version.ToString(),
},
new Property()
new Property
{
Name = "gitBranch",
Value = nuspecModel.nuspecReader.GetRepositoryMetadata().Branch
},
new Property()
new Property
{
Name = "gitCommit",
Value = nuspecModel.nuspecReader.GetRepositoryMetadata().Commit
},
new Property()
new Property
{
Name = "gitRepositoryType",
Value = nuspecModel.nuspecReader.GetRepositoryMetadata().Type
},
new Property()
new Property
{
Name = "licenceAcceptanceRequired",
Value = nuspecModel.nuspecReader.GetRequireLicenseAcceptance().ToString()
Expand Down

0 comments on commit 39b25f7

Please sign in to comment.