no links, no error
Henry committed
Oct 19, 2014 at 16:52 UTC
2276b55c5701a0f951b9fd34bee37aa57691b619
1 file changed
-5
core/commands/object.go
-5
@@ -33,11 +33,6 @@ func ObjectLinks(n *core.IpfsNode, args []string, opts map[string]interface{}, o
33
}
34
log.Debug("ObjectLinks: found dagnode %q (# of bytes: %d - # links: %d)", args[0], len(dagnode.Data), len(dagnode.Links))
35
36
- if len(dagnode.Links) == 0 {
37
- // TODO(cryptix): named error?
38
- return errors.New("objectLinks: no links in this node")
39
- }
40
-
36
for _, link := range dagnode.Links {
37
_, err = fmt.Fprintf(out, "%s %d %q\n", link.Hash.B58String(), link.Size, link.Name)
38
if err != nil {