@@ -156,7 +156,10 @@ internal static Bom CopyBomAndDowngrade(Bom bom)
156
156
bomCopy . Properties = null ;
157
157
bomCopy . Formulation = null ;
158
158
159
- if ( bomCopy . Metadata != null ) bomCopy . Metadata . Lifecycles = null ;
159
+ if ( bomCopy . Metadata != null )
160
+ {
161
+ bomCopy . Metadata . Lifecycles = null ;
162
+ }
160
163
161
164
if ( bomCopy . Compositions != null )
162
165
{
@@ -177,7 +180,10 @@ internal static Bom CopyBomAndDowngrade(Bom bom)
177
180
{
178
181
component . ModelCard = null ;
179
182
component . Data = null ;
180
- if ( ( int ) component . Type > 8 ) component . Type = Component . Classification . Library ;
183
+ if ( ( int ) component . Type > 8 )
184
+ {
185
+ component . Type = Component . Classification . Library ;
186
+ }
181
187
} ) ;
182
188
183
189
EnumerateAllServices ( bomCopy , ( service ) =>
@@ -425,15 +431,21 @@ public static void EnumerateAllEvidence(Bom bom, Action<Evidence> callback)
425
431
{
426
432
EnumerateAllComponents ( bom , ( component ) =>
427
433
{
428
- if ( component . Evidence != null ) callback ( component . Evidence ) ;
434
+ if ( component . Evidence != null )
435
+ {
436
+ callback ( component . Evidence ) ;
437
+ }
429
438
} ) ;
430
439
}
431
440
432
441
public static void EnumerateAllLicenses ( Bom bom , Action < License > callback )
433
442
{
434
443
EnumerateAllLicenseChoices ( bom , ( licenseChoice ) =>
435
444
{
436
- if ( licenseChoice . License != null ) callback ( licenseChoice . License ) ;
445
+ if ( licenseChoice . License != null )
446
+ {
447
+ callback ( licenseChoice . License ) ;
448
+ }
437
449
} ) ;
438
450
}
439
451
@@ -496,7 +508,9 @@ public static void EnumerateAllOrganizationalEntity(Bom bom, Action<Organization
496
508
foreach ( var annotation in bom . Annotations )
497
509
{
498
510
if ( annotation . Annotator ? . Organization != null )
511
+ {
499
512
callback ( annotation . Annotator . Organization ) ;
513
+ }
500
514
}
501
515
}
502
516
@@ -511,7 +525,10 @@ public static void EnumerateAllOrganizationalEntity(Bom bom, Action<Organization
511
525
} ) ;
512
526
EnumerateAllComponents ( bom , ( component ) =>
513
527
{
514
- if ( component . Supplier != null ) callback ( component . Supplier ) ;
528
+ if ( component . Supplier != null )
529
+ {
530
+ callback ( component . Supplier ) ;
531
+ }
515
532
516
533
517
534
component . ModelCard ? . Considerations ? . EnvironmentalConsiderations ? . EnergyConsumptions ?
@@ -529,7 +546,10 @@ public static void EnumerateAllOrganizationalEntity(Bom bom, Action<Organization
529
546
} ) ;
530
547
EnumerateAllServices ( bom , ( service ) =>
531
548
{
532
- if ( service . Provider != null ) callback ( service . Provider ) ;
549
+ if ( service . Provider != null )
550
+ {
551
+ callback ( service . Provider ) ;
552
+ }
533
553
} ) ;
534
554
}
535
555
@@ -577,7 +597,9 @@ public static void EnumerateAllToolChoices(Bom bom, Action<ToolChoices> callback
577
597
EnumerateAllVulnerabilities ( bom , ( vuln ) =>
578
598
{
579
599
if ( vuln . Tools != null )
600
+ {
580
601
callback ( vuln . Tools ) ;
602
+ }
581
603
} ) ;
582
604
}
583
605
0 commit comments