mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Fixed issues found by staticcheck. (#227)
This commit is contained in:
parent
2ac7940206
commit
56a047cdde
2 changed files with 5 additions and 7 deletions
|
|
@ -41,7 +41,7 @@ type LimitingClient struct {
|
|||
// Do implements the respective method of the Client interface.
|
||||
func (lc *LoggingClient) Do(req *http.Request) (*http.Response, error) {
|
||||
log.Printf("[DO]: %s\n", req.URL.String())
|
||||
return lc.Do(req)
|
||||
return lc.Client.Do(req)
|
||||
}
|
||||
|
||||
// Get implements the respective method of the Client interface.
|
||||
|
|
@ -53,19 +53,19 @@ func (lc *LoggingClient) Get(url string) (*http.Response, error) {
|
|||
// Head implements the respective method of the Client interface.
|
||||
func (lc *LoggingClient) Head(url string) (*http.Response, error) {
|
||||
log.Printf("[HEAD]: %s\n", url)
|
||||
return lc.Head(url)
|
||||
return lc.Client.Head(url)
|
||||
}
|
||||
|
||||
// Post implements the respective method of the Client interface.
|
||||
func (lc *LoggingClient) Post(url, contentType string, body io.Reader) (*http.Response, error) {
|
||||
log.Printf("[POST]: %s\n", url)
|
||||
return lc.Post(url, contentType, body)
|
||||
return lc.Client.Post(url, contentType, body)
|
||||
}
|
||||
|
||||
// PostForm implements the respective method of the Client interface.
|
||||
func (lc *LoggingClient) PostForm(url string, data url.Values) (*http.Response, error) {
|
||||
log.Printf("[POST FORM]: %s\n", url)
|
||||
return lc.PostForm(url, data)
|
||||
return lc.Client.PostForm(url, data)
|
||||
}
|
||||
|
||||
// Do implements the respective method of the Client interface.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue