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:
@ -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{
|
||||
|
Reference in New Issue
Block a user