File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,7 @@ func (d *ociImageDestination) putSignaturesToSigstoreAttachment(ctx context.Cont
436436 d .blobDeleteCandidates .Add (signManifest .Config .Digest )
437437 }
438438
439- desc , err := d .getDescriptor (& manifestDigest )
439+ desc , err := d .getDescriptor (manifestDigest )
440440 if err != nil {
441441 return err
442442 }
@@ -523,12 +523,9 @@ func (d *ociImageDestination) putSignaturesToSigstoreAttachment(ctx context.Cont
523523 return nil
524524}
525525
526- func (d * ociImageDestination ) getDescriptor (digest * digest.Digest ) (* imgspecv1.Descriptor , error ) {
527- if digest == nil {
528- return nil , errors .New ("digest is nil" )
529- }
526+ func (d * ociImageDestination ) getDescriptor (digest digest.Digest ) (* imgspecv1.Descriptor , error ) {
530527 for _ , desc := range d .index .Manifests {
531- if desc .Digest == * digest {
528+ if desc .Digest == digest {
532529 return & desc , nil
533530 }
534531 }
You can’t perform that action at this time.
0 commit comments