Skip to content

Commit

Permalink
Remained of Lint Warnings!
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 9247b0c commit a12f3b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions comid/tdx-profile/example_seam_refval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,17 +285,17 @@ func decodeMValExtensions(m comid.Measurement) error {
fmt.Printf("val was not pointer to IsvProdID")
}
if tS.IsBytesIsvProdID() {
b, err1 := tS.GetBytesIsvProdID()
if err1 != nil {
return fmt.Errorf("failed to decode isvprodid: %w", err1)
val, err = tS.GetBytesIsvProdID()
if err != nil {
return fmt.Errorf("failed to decode isvprodid: %w", err)
}
fmt.Printf("\nIsvProdID: %x", b)
fmt.Printf("\nIsvProdID: %x", val)
} else if tS.IsUintIsvProdID() {
b, err := tS.GetUintIsvProdID()
val, err = tS.GetUintIsvProdID()
if err != nil {
return fmt.Errorf("failed to decode isvprodid: %w", err)
}
fmt.Printf("\nIsvProdID: %d", b)
fmt.Printf("\nIsvProdID: %d", val)
} else {
return fmt.Errorf("isvprodid is neither integer or byte string")
}
Expand Down

0 comments on commit a12f3b8

Please sign in to comment.