Skip to content

Commit 83460ba

Browse files
committed
brew update
1 parent 408c6bc commit 83460ba

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

internal/homebrew/homebrew.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ package homebrew
1616

1717
import (
1818
"bytes"
19-
"fmt"
2019
"os"
2120
"os/exec"
2221
"path/filepath"
@@ -48,7 +47,7 @@ func NewChecker(fileSystem afero.Fs) (*Checker, error) {
4847
return &Checker{fs: fileSystem, path: filePath}, nil
4948
}
5049

51-
func formulaName(tool string) string {
50+
func FormulaName(tool string) string {
5251
if strings.Contains(tool, "atlas") {
5352
return atlasFormulaName
5453
}
@@ -63,7 +62,7 @@ func (s Checker) IsHomebrew() bool {
6362
return strings.HasPrefix(h.ExecutablePath, h.FormulaPath)
6463
}
6564

66-
formula := formulaName(config.BinName())
65+
formula := FormulaName(config.BinName())
6766
cmdResult := new(bytes.Buffer)
6867
cmd := exec.Command("brew", "--prefix", formula)
6968

@@ -83,8 +82,6 @@ func (s Checker) IsHomebrew() bool {
8382

8483
h.FormulaPath, err = filepath.EvalSymlinks(strings.TrimSpace(cmdResult.String()))
8584
if err != nil {
86-
fmt.Println("formula")
87-
fmt.Println(err)
8885
return false
8986
}
9087
_ = s.save(h)

0 commit comments

Comments
 (0)