Skip to content

Commit

Permalink
Print (nil) for nil elements in an arary response
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinmwinuka committed Feb 21, 2024
1 parent 4b8c96a commit 0e078e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ func PrintArray(val resp.Value, initialIndent int) {
PrintArray(item, initialIndent+len(pos))
continue
}
if item.IsNull() {
fmt.Println("(nil)")
continue
}
fmt.Println(item)
}
}
Expand Down

0 comments on commit 0e078e6

Please sign in to comment.