Add missing return statement.

Caused a panic when repo could not be reached.
This commit is contained in:
GeertJohan 2014-04-04 20:15:12 +02:00
parent 22ed8eb873
commit ca4ee5569f

View File

@ -211,6 +211,7 @@ func nameHasVersion(repo *Repo) chan bool {
resp, err := http.Head(repo.HubRoot + "-" + repo.Version.String() + refsSuffix)
if err != nil {
ch <- false
return
}
if resp.Body != nil {
resp.Body.Close()