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-path
Commits
4654ed9d
Commit
4654ed9d
authored
Oct 31, 2015
by
Juan Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1886 from ipfs/fix/ThatPut
fixing putHandler
parents
a8fe4e87
47ddd064
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
resolver.go
resolver.go
+4
-4
No files found.
resolver.go
View file @
4654ed9d
...
...
@@ -22,12 +22,12 @@ var ErrNoComponents = errors.New(
// ErrNoLink is returned when a link is not found in a path
type
ErrNoLink
struct
{
n
ame
string
n
ode
mh
.
Multihash
N
ame
string
N
ode
mh
.
Multihash
}
func
(
e
ErrNoLink
)
Error
()
string
{
return
fmt
.
Sprintf
(
"no link named %q under %s"
,
e
.
n
ame
,
e
.
n
ode
.
B58String
())
return
fmt
.
Sprintf
(
"no link named %q under %s"
,
e
.
N
ame
,
e
.
N
ode
.
B58String
())
}
// Resolver provides path resolution to IPFS
...
...
@@ -124,7 +124,7 @@ func (s *Resolver) ResolveLinks(ctx context.Context, ndd *merkledag.Node, names
if
next
==
""
{
n
,
_
:=
nd
.
Multihash
()
return
result
,
ErrNoLink
{
n
ame
:
name
,
n
ode
:
n
}
return
result
,
ErrNoLink
{
N
ame
:
name
,
N
ode
:
n
}
}
if
nlink
.
Node
==
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