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,13 +207,10 @@ func (in *Index) Refresh() error {
return nil
}
rel, err := filepath.Rel(packRoot, path)
if err == nil {
if ignore.Ignore(filepath.ToSlash(rel)) {
if ignore.Ignore(absPath) {
return nil
}
}
}
fileList = append(fileList, path)
return nil