mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
fix golint
This commit is contained in:
@@ -83,7 +83,7 @@ func (c *ProxyClient) ModuleName(path string) (string, error) {
|
||||
// LatestVersion gets the latest module version from the proxy
|
||||
func (c *ProxyClient) LatestVersion(path string) (string, error) {
|
||||
lowerPath := strings.ToLower(path)
|
||||
u := fmt.Sprintf(c.latestURL(lowerPath))
|
||||
u := c.latestURL(lowerPath)
|
||||
resp, err := http.Get(u)
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
||||
Reference in New Issue
Block a user