Skip to content

Commit

Permalink
TIDY unused packages-with-index HTTPClient (#420)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Clegg <m@cle.gg>
  • Loading branch information
mattclegg committed Jun 21, 2024
1 parent 15da3ec commit a31e38a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/releaser/releaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"fmt"
"io"
"math/rand"
"net/http"
"net/url"
"os"
"path/filepath"
Expand Down Expand Up @@ -53,11 +52,6 @@ type GitHub interface {
CreatePullRequest(owner string, repo string, message string, head string, base string) (string, error)
}

type HTTPClient interface {
Get(url string) (*http.Response, error)
GetWithToken(url string, token string) (*http.Response, error)
}

type Git interface {
AddWorktree(workingDir string, committish string) (string, error)
RemoveWorktree(workingDir string, path string) error
Expand All @@ -68,8 +62,6 @@ type Git interface {
GetPushURL(remote string, token string) (string, error)
}

type DefaultHTTPClient struct{}

var letters = []rune("abcdefghijklmnopqrstuvwxyz0123456789")

const chartAssetFileExtension = ".tgz"
Expand All @@ -78,10 +70,6 @@ func init() {
rand.New(rand.NewSource(time.Now().UnixNano())) // nolint: gosec
}

func (c *DefaultHTTPClient) Get(url string) (resp *http.Response, err error) {
return http.Get(url) // nolint: gosec
}

type Releaser struct {
config *config.Options
github GitHub
Expand Down

0 comments on commit a31e38a

Please sign in to comment.