Skip to content

Commit a31e38a

Browse files
authored
TIDY unused packages-with-index HTTPClient (#420)
Signed-off-by: Matt Clegg <[email protected]>
1 parent 15da3ec commit a31e38a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pkg/releaser/releaser.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"fmt"
2121
"io"
2222
"math/rand"
23-
"net/http"
2423
"net/url"
2524
"os"
2625
"path/filepath"
@@ -53,11 +52,6 @@ type GitHub interface {
5352
CreatePullRequest(owner string, repo string, message string, head string, base string) (string, error)
5453
}
5554

56-
type HTTPClient interface {
57-
Get(url string) (*http.Response, error)
58-
GetWithToken(url string, token string) (*http.Response, error)
59-
}
60-
6155
type Git interface {
6256
AddWorktree(workingDir string, committish string) (string, error)
6357
RemoveWorktree(workingDir string, path string) error
@@ -68,8 +62,6 @@ type Git interface {
6862
GetPushURL(remote string, token string) (string, error)
6963
}
7064

71-
type DefaultHTTPClient struct{}
72-
7365
var letters = []rune("abcdefghijklmnopqrstuvwxyz0123456789")
7466

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

81-
func (c *DefaultHTTPClient) Get(url string) (resp *http.Response, err error) {
82-
return http.Get(url) // nolint: gosec
83-
}
84-
8573
type Releaser struct {
8674
config *config.Options
8775
github GitHub

0 commit comments

Comments
 (0)