Skip to content

Commit

Permalink
add omitempty to Object struct tags
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
  • Loading branch information
whyrusleeping committed Apr 19, 2016
1 parent 9890d28 commit d8f8b09
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 d8f8b09

Please sign in to comment.