Commit 13a3cd38 authored by Eric Myhre's avatar Eric Myhre

Regen gendemo package.

(It's a small diff -- just reflecting the fix for map returing absent.)
parent befa4986
...@@ -79,7 +79,7 @@ func (n Map__String__Msg3) LookupString(k string) (ipld.Node, error) { ...@@ -79,7 +79,7 @@ func (n Map__String__Msg3) LookupString(k string) (ipld.Node, error) {
} }
v, exists := n.m[k2] v, exists := n.m[k2]
if !exists { if !exists {
return ipld.Undef, ipld.ErrNotExists{ipld.PathSegmentOfString(k)} return nil, ipld.ErrNotExists{ipld.PathSegmentOfString(k)}
} }
return v, nil return v, nil
} }
...@@ -91,7 +91,7 @@ func (n Map__String__Msg3) Lookup(k ipld.Node) (ipld.Node, error) { ...@@ -91,7 +91,7 @@ func (n Map__String__Msg3) Lookup(k ipld.Node) (ipld.Node, error) {
} }
v, exists := n.m[*k2] v, exists := n.m[*k2]
if !exists { if !exists {
return ipld.Undef, ipld.ErrNotExists{ipld.PathSegmentOfString(k2.String())} return nil, ipld.ErrNotExists{ipld.PathSegmentOfString(k2.String())}
} }
return v, nil return v, nil
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment