Skip to content

Commit

Permalink
Merge pull request #82 from deeglaze/lennil
Browse files Browse the repository at this point in the history
Fix internal linter error
  • Loading branch information
deeglaze authored Sep 19, 2023
2 parents 28d8e00 + 66439f5 commit c9150c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions abi/abi.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,14 +787,14 @@ func (c *CertTable) Proto() *pb.CertificateChain {
result.Extras[entry.GUID.String()] = entry.RawCert
}
}
if (result.VcekCert == nil) && (result.VlekCert == nil) {
if len(result.VcekCert) == 0 && len(result.VlekCert) == 0 {
logger.Warning("Warning: Neither VCEK nor VLEK certificate found in data pages")
}

if result.AskCert == nil {
if len(result.AskCert) == 0 {
logger.Warningf("ASK certificate not found in data pages")
}
if result.ArkCert == nil {
if len(result.ArkCert) == 0 {
logger.Warningf("ARK certificate not found in data pages")
}
return result
Expand Down

0 comments on commit c9150c5

Please sign in to comment.