mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-22 12:51:19 +08:00
fix go style
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
@ -196,8 +196,8 @@ func (s *Root) Lookup(ctx context.Context, name string) (fs.Node, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// other links go through ipns resolution and are symlinked into the ipfs mountpoint
|
// other links go through ipns resolution and are symlinked into the ipfs mountpoint
|
||||||
ipns_name := "/ipns/" + name
|
ipnsName := "/ipns/" + name
|
||||||
resolved, err := s.Ipfs.Namesys.Resolve(s.Ipfs.Context(), ipns_name)
|
resolved, err := s.Ipfs.Namesys.Resolve(s.Ipfs.Context(), ipnsName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warningf("ipns: namesys resolve error: %s", err)
|
log.Warningf("ipns: namesys resolve error: %s", err)
|
||||||
return nil, fuse.ENOENT
|
return nil, fuse.ENOENT
|
||||||
|
Reference in New Issue
Block a user