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