From 41832a935577448ba1e6a0fe1046e98678230bf9 Mon Sep 17 00:00:00 2001 From: Marko Boben Date: Wed, 3 Apr 2024 12:53:34 +0200 Subject: [PATCH] change to cert parsing --- avalanchego/utils/wrappers/packing.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/avalanchego/utils/wrappers/packing.go b/avalanchego/utils/wrappers/packing.go index 472c99441..ed0317415 100644 --- a/avalanchego/utils/wrappers/packing.go +++ b/avalanchego/utils/wrappers/packing.go @@ -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)