Skip to content

Commit bc804cc

Browse files
committed
Remove named return variables in client
1 parent 0a05bbc commit bc804cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus/promhttp/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (c ClientMiddleware) Do(r *http.Request) (*http.Response, error) {
4141
}
4242

4343
// Get implements the httpClient interface.
44-
func (c ClientMiddleware) Get(url string) (resp *http.Response, err error) {
44+
func (c ClientMiddleware) Get(url string) (*http.Response, error) {
4545
req, err := http.NewRequest("GET", url, nil)
4646
if err != nil {
4747
return nil, err

0 commit comments

Comments
 (0)