This commit is contained in:
Denis Bilenko 2024-12-19 14:24:48 +01:00
parent b50227afbe
commit 21a4cd1128
1 changed files with 0 additions and 2 deletions

View File

@ -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)