Remove unnecessary filepath.Rel (Ignore calls Abs anyway)

This commit is contained in:
comp500 2021-09-19 14:31:19 +01:00
parent 92ba8effaa
commit c89aeed576

View File

@ -207,11 +207,8 @@ func (in *Index) Refresh() error {
return nil return nil
} }
rel, err := filepath.Rel(packRoot, path) if ignore.Ignore(absPath) {
if err == nil { return nil
if ignore.Ignore(filepath.ToSlash(rel)) {
return nil
}
} }
} }