Skip to content

Commit

Permalink
change to cert parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Boben committed Apr 3, 2024
1 parent cd951df commit 41832a9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions avalanchego/utils/wrappers/packing.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,6 @@ func (p *Packer) PackX509Certificate(cert *x509.Certificate) {

func (p *Packer) UnpackX509Certificate() *x509.Certificate {
b := p.UnpackBytes()
if len(b) == 0 {
return nil
}
cert, err := x509.ParseCertificate(b)
if err != nil {
p.Add(err)
Expand Down

0 comments on commit 41832a9

Please sign in to comment.