avoid overwriting variables

This commit is contained in:
Chris Lu 2018-05-23 02:36:19 -07:00
parent 468514f525
commit e97c60cc10

View file

@ -34,7 +34,7 @@ func (filer *MemDbStore) InsertEntry(entry *filer2.Entry) (err error) {
}
func (filer *MemDbStore) UpdateEntry(entry *filer2.Entry) (err error) {
found, entry, err := filer.FindEntry(entry.FullPath)
found, _, err := filer.FindEntry(entry.FullPath)
if !found {
return fmt.Errorf("No such file: %s", entry.FullPath)
}