Skip to content

Commit

Permalink
Lint up
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Moynes committed Nov 29, 2023
1 parent 30ca8fc commit 790d1ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"log"
"os"
"os/exec"
"path/filepath"
path "path/filepath"
"runtime"
"strings"
Expand Down Expand Up @@ -112,7 +111,6 @@ func installDeps() error {
if err := runDep(ctx, goCmd, "install", "-v", "golang.org/x/tools/cmd/stringer@latest"); err != nil {
return fmt.Errorf("go install stringer: %w", err)
}

} else {
println("stringer (required):", stringer)
}
Expand All @@ -128,7 +126,7 @@ func installDeps() error {
} else if goBin, ok := os.LookupEnv("GOBIN"); ok {
installBin = goBin
} else if goPath, ok := os.LookupEnv("GOPATH"); ok {
installBin = filepath.Join(goPath, "bin")
installBin = path.Join(goPath, "bin")
} else {
println("golangci-lint: install dir not found. Set INSTALLBIN in your in environment")
return fmt.Errorf("golangci-lint: unknown install path")
Expand Down

0 comments on commit 790d1ea

Please sign in to comment.