Browse Source

Add missing return statement.

Caused a panic when repo could not be reached.
master
GeertJohan 10 years ago
parent
commit
ca4ee5569f
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      main.go

+ 1
- 0
main.go 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()


Loading…
Cancel
Save