Skip to content

Commit

Permalink
check empty slice
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Oct 30, 2024
1 parent 437f72e commit ebdb858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions params.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (b *paramBuilder) addBin(name *C.char, value []byte, private bool) {
if !b.check() {
return
}
if value == nil {
if len(value) == 0 {
// Nothing to do.
return
}
Expand All @@ -196,7 +196,7 @@ func (b *paramBuilder) addBigInt(name *C.char, value BigInt, private bool) {
if !b.check() {
return
}
if value == nil {
if len(value) == 0 {
// Nothing to do.
return
}
Expand Down

0 comments on commit ebdb858

Please sign in to comment.