Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ld
go-ld-prime
Commits
13a3cd38
Commit
13a3cd38
authored
Jun 15, 2020
by
Eric Myhre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regen gendemo package.
(It's a small diff -- just reflecting the fix for map returing absent.)
parent
befa4986
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
node/gendemo/tMap__String__Msg3.go
node/gendemo/tMap__String__Msg3.go
+2
-2
No files found.
node/gendemo/tMap__String__Msg3.go
View file @
13a3cd38
...
...
@@ -79,7 +79,7 @@ func (n Map__String__Msg3) LookupString(k string) (ipld.Node, error) {
}
v, exists := n.m[k2]
if !exists {
return
ipld.Undef
, ipld.ErrNotExists{ipld.PathSegmentOfString(k)}
return
nil
, ipld.ErrNotExists{ipld.PathSegmentOfString(k)}
}
return v, nil
}
...
...
@@ -91,7 +91,7 @@ func (n Map__String__Msg3) Lookup(k ipld.Node) (ipld.Node, error) {
}
v, exists := n.m[*k2]
if !exists {
return
ipld.Undef
, ipld.ErrNotExists{ipld.PathSegmentOfString(k2.String())}
return
nil
, ipld.ErrNotExists{ipld.PathSegmentOfString(k2.String())}
}
return v, nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment