Skip to content

Commit c87b92c

Browse files
committed
Merge pull request ipfs#2591 from ipfs/fix/null-object-links
add omitempty to Object struct tags
2 parents d4622c4 + d8f8b09 commit c87b92c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/commands/object/object.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ type Link struct {
3737
}
3838

3939
type Object struct {
40-
Hash string
41-
Links []Link
40+
Hash string `json:"Hash,omitempty"`
41+
Links []Link `json:"Links,omitempty"`
4242
}
4343

4444
var ObjectCmd = &cmds.Command{

0 commit comments

Comments
 (0)