Skip to content

Commit af207ad

Browse files
committed
🚑 [eth/funder] Fix uninitialized variable.
Signed-off-by: Oliver Tale-Yazdi <oliver@perun.network>
1 parent 49ca3e6 commit af207ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/ethereum/channel/funder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (f *Funder) Fund(ctx context.Context, request channel.FundingReq) error {
106106

107107
// Wait for the funding events or timeout.
108108
var fundingErrs []*channel.AssetFundingError
109-
var nonFundingErrg perror.Gatherer
109+
nonFundingErrg := perror.NewGatherer()
110110
for _, err := range perror.Causes(errg.Wait()) {
111111
if channel.IsAssetFundingError(err) && err != nil {
112112
fundingErrs = append(fundingErrs, err.(*channel.AssetFundingError))

0 commit comments

Comments
 (0)