mirror of https://github.com/databricks/cli.git
clean up
This commit is contained in:
parent
b50227afbe
commit
21a4cd1128
|
@ -46,11 +46,9 @@ func DetectExecutable(ctx context.Context) (string, error) {
|
||||||
if err != nil && !errors.Is(err, exec.ErrNotFound) {
|
if err != nil && !errors.Is(err, exec.ErrNotFound) {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
if out != "" {
|
if out != "" {
|
||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// otherwise, detect all interpreters and pick the least that satisfies
|
// otherwise, detect all interpreters and pick the least that satisfies
|
||||||
// minimal version requirements
|
// minimal version requirements
|
||||||
all, err := DetectInterpreters(ctx)
|
all, err := DetectInterpreters(ctx)
|
||||||
|
|
Loading…
Reference in New Issue