We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 184b770 commit 67c4e2dCopy full SHA for 67c4e2d
core/commands/files.go
@@ -451,13 +451,13 @@ Examples:
451
Name: name,
452
})
453
}
454
- return res.Emit(&filesLsOutput{output})
+ return cmds.EmitOnce(res, &filesLsOutput{output})
455
456
listing, err := fsn.List(req.Context)
457
if err != nil {
458
return err
459
460
- return res.Emit(&filesLsOutput{listing})
+ return cmds.EmitOnce(res, &filesLsOutput{listing})
461
case *mfs.File:
462
_, name := gopath.Split(path)
463
out := &filesLsOutput{[]mfs.NodeListing{{Name: name}}}
@@ -476,7 +476,7 @@ Examples:
476
477
out.Entries[0].Hash = nd.Cid().String()
478
479
- return res.Emit(out)
+ return cmds.EmitOnce(res, out)
480
default:
481
return errors.New("unrecognized type")
482
0 commit comments