We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7d16e0 commit ede224cCopy full SHA for ede224c
object/array.go
@@ -15,8 +15,12 @@ func (ao *Array) Inspect() string {
15
var out bytes.Buffer
16
17
elements := []string{}
18
- for _, e := range ao.Elements {
19
- elements = append(elements, e.Inspect())
+ if len(ao.Elements) != 0 {
+ for _, e := range ao.Elements {
20
+ if e.Inspect() != "" {
21
+ elements = append(elements, e.Inspect())
22
+ }
23
24
}
25
26
out.WriteString("[")
0 commit comments