This commit is contained in:
Denis Bilenko 2024-12-10 14:28:09 +01:00
parent 122e6f5a4c
commit 1789cca2cb
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import (
// FindDirWithLeaf returns the first directory that holds `leaf`,
// traversing up to the root of the filesystem, starting at `dir`.
func FindDirWithLeaf(dir string, leaf string) (string, error) {
p, err := filepath.Abs(p)
dir, err := filepath.Abs(dir)
if err != nil {
return "", err
}