mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-13 19:28:55 +00:00
remove unused code (#7203)
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
This commit is contained in:
parent
03df0f83a6
commit
26eb31a143
1 changed files with 1 additions and 6 deletions
|
@ -263,19 +263,14 @@ func (iv *ImageVerifier) verifyImage(
|
|||
if ruleResp.Status() != engineapi.RuleStatusPass {
|
||||
return ruleResp, ""
|
||||
}
|
||||
if len(imageVerify.Attestations) == 0 {
|
||||
return ruleResp, cosignResp.Digest
|
||||
}
|
||||
if imageInfo.Digest == "" {
|
||||
imageInfo.Digest = cosignResp.Digest
|
||||
}
|
||||
if len(imageVerify.Attestations) == 0 {
|
||||
return ruleResp, cosignResp.Digest
|
||||
}
|
||||
if imageInfo.Digest == "" {
|
||||
imageInfo.Digest = cosignResp.Digest
|
||||
}
|
||||
}
|
||||
|
||||
return iv.verifyAttestations(ctx, imageVerify, imageInfo)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue