mirror of https://github.com/databricks/cli.git
fix
This commit is contained in:
parent
122e6f5a4c
commit
1789cca2cb
|
@ -9,7 +9,7 @@ import (
|
||||||
// FindDirWithLeaf returns the first directory that holds `leaf`,
|
// FindDirWithLeaf returns the first directory that holds `leaf`,
|
||||||
// traversing up to the root of the filesystem, starting at `dir`.
|
// traversing up to the root of the filesystem, starting at `dir`.
|
||||||
func FindDirWithLeaf(dir string, leaf string) (string, error) {
|
func FindDirWithLeaf(dir string, leaf string) (string, error) {
|
||||||
p, err := filepath.Abs(p)
|
dir, err := filepath.Abs(dir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue