Skip to content

Commit

Permalink
chore: remove execPath
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm committed Aug 15, 2023
1 parent c125052 commit 4f12316
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions atlasexec/atlas.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"io"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
)
Expand Down Expand Up @@ -346,16 +345,6 @@ func TempFile(content, ext string) (string, func() error, error) {
}, nil
}

func execPath(dir, name string) (file string, err error) {
file = filepath.Join(dir, name)
if _, err = os.Stat(file); err == nil {
return file, nil
}
// If the binary is not in the current directory,
// try to find it in the PATH.
return exec.LookPath(name)
}

type cliError struct {
summary string
detail string
Expand Down

0 comments on commit 4f12316

Please sign in to comment.