Don't check if symlink is valid, as the target might have already been removed before index update

This commit is contained in:
Ilja Neumann
2020-10-14 18:03:52 +02:00
parent c4df138ac7
commit 4aa019289b
@@ -90,10 +90,6 @@ func (idx Unique) Add(id, v string) (string, error) {
// Remove a value v from an index.
func (idx Unique) Remove(id string, v string) (err error) {
searchPath := path.Join(idx.indexRootDir, v)
if err = isValidSymlink(searchPath); err != nil {
return
}
return os.Remove(searchPath)
}