Commit 3b479a8f authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

UnionFs: use ,ok style for reading directories.

parent 794d8cbe
......@@ -599,8 +599,8 @@ func (me *UnionFs) OpenDir(directory string) (stream chan fuse.DirEntry, status
ch, s := pfs.OpenDir(directory)
statuses[j] = s
for s.Ok() {
v := <-ch
if v.Name == "" {
v, ok := <-ch
if !ok {
break
}
entries[j][v.Name] = v.Mode
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment