aboutsummaryrefslogtreecommitdiff
path: root/go/weed/mount_std.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/weed/mount_std.go')
-rw-r--r--go/weed/mount_std.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/weed/mount_std.go b/go/weed/mount_std.go
index 8b5ffefcb..e54559c90 100644
--- a/go/weed/mount_std.go
+++ b/go/weed/mount_std.go
@@ -87,7 +87,7 @@ func (WFS) Root() (fs.Node, error) {
}
func (dir *Dir) ReadDir(ctx context.Context) ([]fuse.Dirent, error) {
- ret := make([]fuse.Dirent, 0)
+ var ret []fuse.Dirent
if dirs, e := filer.ListDirectories(*mountOptions.filer, dir.Path); e == nil {
for _, d := range dirs.Directories {
dirId := uint64(d.Id)