Skip to content

Commit d6b10be

Browse files
committed
tapscript: remove some shadowing of errors
1 parent 5f9c122 commit d6b10be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tapscript/send.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ func CreateOutputCommitments(inputTapCommitments tappsbt.InputCommitments,
794794
}
795795

796796
// Remove all input assets from the asset commitment tree.
797-
err := assetCommitment.Delete(inputAsset)
797+
err = assetCommitment.Delete(inputAsset)
798798
if err != nil {
799799
return nil, err
800800
}
@@ -819,7 +819,7 @@ func CreateOutputCommitments(inputTapCommitments tappsbt.InputCommitments,
819819
// The asset is present, just commit it to the input
820820
// asset commitment.
821821
case vOut.Asset != nil:
822-
err := assetCommitment.Upsert(vOut.Asset)
822+
err = assetCommitment.Upsert(vOut.Asset)
823823
if err != nil {
824824
return nil, err
825825
}

0 commit comments

Comments
 (0)