File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ func (o Tag) Valid() error {
352352 switch o .Number {
353353 case ComidTag : // 506 - CoMID tag
354354 return o .validateComidTag ()
355- case CoswidTag : // 505 - CoSWID tag
355+ case CoswidTag : // 505 - CoSWID tag
356356 return o .validateCoswidTag ()
357357 default :
358358 // For unknown tags, just ensure the content is valid CBOR
@@ -366,11 +366,11 @@ func (o Tag) validateComidTag() error {
366366 if err := dm .Unmarshal (o .Content , & c ); err != nil {
367367 return fmt .Errorf ("invalid CoMID content: %w" , err )
368368 }
369-
369+
370370 if err := c .Valid (); err != nil {
371371 return fmt .Errorf ("CoMID validation failed: %w" , err )
372372 }
373-
373+
374374 return nil
375375}
376376
@@ -380,7 +380,7 @@ func (o Tag) validateCoswidTag() error {
380380 if err := dm .Unmarshal (o .Content , & s ); err != nil {
381381 return fmt .Errorf ("invalid CoSWID content: %w" , err )
382382 }
383-
383+
384384 // Basic validation - if unmarshaling succeeded, the structure is valid
385385 // Additional validation could be added here if needed
386386 return nil
You can’t perform that action at this time.
0 commit comments