skip deletion if entry not found

This commit is contained in:
Chris Lu committed 2018-05-27 00:00:56 -07:00
1 parent f124ebab1d
commit 603de2d5db
2 files changed
+8 -2

No files matched your search

@@ -79,7 +79,10 @@ func (store *AbstractSqlStore) FindEntry(fullpath filer2.FullPath) (*filer2.Entr
func (store *AbstractSqlStore) DeleteEntry(fullpath filer2.FullPath) (*filer2.Entry, error) {
entry, _ := store.FindEntry(fullpath)
entry, err := store.FindEntry(fullpath)
if err != nil {
return nil, nil
}
dir, name := fullpath.DirAndName()