Skip to content

Commit

Permalink
fix: return empty list instead of nil
Browse files Browse the repository at this point in the history
  • Loading branch information
irrun committed Feb 23, 2024
1 parent bbc47c4 commit 6a4f324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/types/bid.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type RawBid struct {

func (b *RawBid) DecodeTxs(signer Signer) ([]*Transaction, error) {
if len(b.Txs) == 0 {
return nil, nil
return []*Transaction{}, nil
}

txChan := make(chan int, TxDecodeConcurrencyForPerBid)
Expand Down

0 comments on commit 6a4f324

Please sign in to comment.