mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-27 16:46:30 +02:00
Remove unnecessary filepath.Rel (Ignore calls Abs anyway)
This commit is contained in:
parent
92ba8effaa
commit
c89aeed576
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user