Skip to content

Commit

Permalink
Fix PCE linters
Browse files Browse the repository at this point in the history
Signed-off-by: Yogesh Deshpande <[email protected]>
  • Loading branch information
yogeshbdeshpande committed Jan 27, 2025
1 parent 7206483 commit 1a1a4be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions comid/tdx-profile/example_pce_refval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ func decodePCEMValExtensions(m comid.Measurement) error {
}

if i.IsBytesInstanceID() {
b, err := i.GetBytesInstanceID()
val, err = i.GetBytesInstanceID()
if err != nil {
return fmt.Errorf("failed to decode instanceid: %w", err)
}
fmt.Printf("\nInstanceID: %x", b)
fmt.Printf("\nInstanceID: %x", val)
} else if i.IsUintInstanceID() {
b, err := i.GetUintInstanceID()
val, err = i.GetUintInstanceID()
if err != nil {
return fmt.Errorf("failed to decode instanceid: %w", err)
}
fmt.Printf("\nInstanceID: %d", b)
fmt.Printf("\nInstanceID: %d", val)
} else {
return fmt.Errorf("instanceid is neither integer or byte string")
}
Expand Down

0 comments on commit 1a1a4be

Please sign in to comment.