Skip to content

Commit

Permalink
Merge pull request ipfs#2591 from ipfs/fix/null-object-links
Browse files Browse the repository at this point in the history
add omitempty to Object struct tags
  • Loading branch information
whyrusleeping committed Apr 19, 2016
2 parents d4622c4 + d8f8b09 commit c87b92c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/commands/object/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ type Link struct {
}

type Object struct {
Hash string
Links []Link
Hash string `json:"Hash,omitempty"`
Links []Link `json:"Links,omitempty"`
}

var ObjectCmd = &cmds.Command{
Expand Down

0 comments on commit c87b92c

Please sign in to comment.