From 21a4cd1128ed780f06c19defe409cbf443ffa1e3 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Thu, 19 Dec 2024 14:24:48 +0100 Subject: [PATCH] clean up --- libs/python/detect.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/libs/python/detect.go b/libs/python/detect.go index f92ea5660..f6dcd008d 100644 --- a/libs/python/detect.go +++ b/libs/python/detect.go @@ -46,11 +46,9 @@ func DetectExecutable(ctx context.Context) (string, error) { if err != nil && !errors.Is(err, exec.ErrNotFound) { return "", err } - if out != "" { return out, nil } - // otherwise, detect all interpreters and pick the least that satisfies // minimal version requirements all, err := DetectInterpreters(ctx)