Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
go-ipfs
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
ipfs
go-ipfs
Commits
76e4dcf7
Commit
76e4dcf7
authored
Dec 4, 2017
by
Jeromy Johnson
Browse files
Options
Downloads
Patches
Plain Diff
appease codeclimate
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
1a75c40f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
unixfs/hamt/hamt.go
+24
-24
24 additions, 24 deletions
unixfs/hamt/hamt.go
with
24 additions
and
24 deletions
unixfs/hamt/hamt.go
+
24
−
24
View file @
76e4dcf7
...
@@ -501,7 +501,8 @@ func (ds *HamtShard) modifyValue(ctx context.Context, hv *hashBits, key string,
...
@@ -501,7 +501,8 @@ func (ds *HamtShard) modifyValue(ctx context.Context, hv *hashBits, key string,
child
.
val
=
val
child
.
val
=
val
return
nil
return
nil
}
else
{
}
if
val
==
nil
{
if
val
==
nil
{
return
os
.
ErrNotExist
return
os
.
ErrNotExist
}
}
...
@@ -529,7 +530,6 @@ func (ds *HamtShard) modifyValue(ctx context.Context, hv *hashBits, key string,
...
@@ -529,7 +530,6 @@ func (ds *HamtShard) modifyValue(ctx context.Context, hv *hashBits, key string,
ds
.
setChild
(
cindex
,
ns
)
ds
.
setChild
(
cindex
,
ns
)
return
nil
return
nil
}
default
:
default
:
return
fmt
.
Errorf
(
"unexpected type for child: %#v"
,
child
)
return
fmt
.
Errorf
(
"unexpected type for child: %#v"
,
child
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment