1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-27 07:57:30 +08:00

Merge pull request #2591 from ipfs/fix/null-object-links

add omitempty to Object struct tags
This commit is contained in:
Jeromy Johnson
2016-04-19 16:39:10 -07:00

View File

@ -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{