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
dms3
go-merkledag
Commits
44cd2f79
Commit
44cd2f79
authored
Aug 16, 2015
by
rht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure ctx in commands are derived from req.Context
License: MIT Signed-off-by:
rht
<
rhtbot@gmail.com
>
parent
1912a50a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
utils/utils.go
utils/utils.go
+1
-2
No files found.
utils/utils.go
View file @
44cd2f79
...
...
@@ -48,8 +48,7 @@ func addLink(ctx context.Context, ds dag.DAGService, root *dag.Node, childname s
// ensure no link with that name already exists
_
=
root
.
RemoveNodeLink
(
childname
)
// ignore error, only option is ErrNotFound
err
=
root
.
AddNodeLinkClean
(
childname
,
childnd
)
if
err
!=
nil
{
if
err
:=
root
.
AddNodeLinkClean
(
childname
,
childnd
);
err
!=
nil
{
return
nil
,
err
}
...
...
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