1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-04 16:16:58 +02:00

mongodb: remove ErrNoDocuments checking since it is only for creating single record, not for querying

This commit is contained in:
chrislu 2022-02-15 16:18:36 -08:00
parent 98cce6a150
commit df51e0c042

View file

@ -200,10 +200,6 @@ func (store *MongodbStore) ListDirectoryEntries(ctx context.Context, dirPath uti
for cur.Next(ctx) { for cur.Next(ctx) {
var data Model var data Model
err = cur.Decode(&data) err = cur.Decode(&data)
if err == mongo.ErrNoDocuments {
err = nil
break
}
if err != nil { if err != nil {
break break
} }