Skip to content

Commit

Permalink
feat: Address unresolved comments from #705 (#708)
Browse files Browse the repository at this point in the history
closes #707

Signed-off-by: laurentsimon <laurentsimon@google.com>
  • Loading branch information
laurentsimon authored Oct 9, 2023
1 parent 8602109 commit 3b171c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verifiers/utils/dsse.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const (
func DsseVerifierNew(content []byte, format KeyFormat, keyID string, sigEncoding *SignatureEncoding) (*dsselib.EnvelopeVerifier, error) {
if format == KeyFormatPEM {
block, rest := pem.Decode(content)
if rest != nil {
if len(rest) != 0 {
return nil, fmt.Errorf("%w: additional data found", serrors.ErrorInvalidPEM)
}
if block == nil {
Expand Down

0 comments on commit 3b171c4

Please sign in to comment.