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-dms3
Commits
dbb2ca2e
Commit
dbb2ca2e
authored
Mar 28, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove redundant validation logic
License: MIT Signed-off-by:
Steven Allen
<
steven@stebalien.com
>
parent
e2387ebb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
unixfs/hamt/hamt.go
unixfs/hamt/hamt.go
+0
-15
No files found.
unixfs/hamt/hamt.go
View file @
dbb2ca2e
...
...
@@ -295,21 +295,6 @@ func (ds *Shard) loadChild(ctx context.Context, i int) (child, error) {
if
err
!=
nil
{
return
nil
,
err
}
pbnd
,
ok
:=
nd
.
(
*
dag
.
ProtoNode
)
if
!
ok
{
return
nil
,
dag
.
ErrNotProtobuf
}
pbd
,
err
:=
format
.
FromBytes
(
pbnd
.
Data
())
if
err
!=
nil
{
return
nil
,
err
}
if
pbd
.
GetType
()
!=
format
.
THAMTShard
{
return
nil
,
fmt
.
Errorf
(
"HAMT entries must have non-zero length name"
)
}
cds
,
err
:=
NewHamtFromDag
(
ds
.
dserv
,
nd
)
if
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