s/apiPkg/result
This commit is contained in:
parent
d22ea164e2
commit
8f75e370d8
6
page.go
6
page.go
@ -266,9 +266,9 @@ func renderPackagePage(resp http.ResponseWriter, req *http.Request, repo *Repo)
|
|||||||
searchResp.Body.Close()
|
searchResp.Body.Close()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
gopkgPath := repo.GopkgPath()
|
gopkgPath := repo.GopkgPath()
|
||||||
for _, apiPkg := range searchResults.Results {
|
for _, result := range searchResults.Results {
|
||||||
if apiPkg.Path == gopkgPath {
|
if result.Path == gopkgPath {
|
||||||
data.Synopsis = apiPkg.Synopsis
|
data.Synopsis = result.Synopsis
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user