From 12ff316bee84c8bed394bc7b913309317006ea32 Mon Sep 17 00:00:00 2001 From: Joe Bowman Date: Thu, 14 Nov 2024 10:51:10 +0000 Subject: [PATCH] lint --- utils/proofs/proofs.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/proofs/proofs.go b/utils/proofs/proofs.go index bdc224e7f..c622849af 100644 --- a/utils/proofs/proofs.go +++ b/utils/proofs/proofs.go @@ -72,13 +72,13 @@ func (p *CelestiaProof) Validate(dataHash []byte, txHash string) ([]byte, error) } func (p *TendermintProof) Validate(dataHash []byte, txHash string) ([]byte, error) { - if p.TxProof == nil { - return nil, fmt.Errorf("TxProof is nil") - } - tmproof, err := tmtypes.TxProofFromProto(*p.TxProof) - if err != nil { - return nil, fmt.Errorf("unable to marshal proof: %w", err) - } + if p.TxProof == nil { + return nil, fmt.Errorf("TxProof is nil") + } + tmproof, err := tmtypes.TxProofFromProto(*p.TxProof) + if err != nil { + return nil, fmt.Errorf("unable to marshal proof: %w", err) + } err = tmproof.Validate(dataHash) if err != nil { return nil, fmt.Errorf("unable to validate proof: %w", err)