Commit 1b8d5038 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Make loop condition more explicit

parent b455b192
......@@ -101,11 +101,11 @@ func gitHandler(w http.ResponseWriter, r *http.Request) {
var env gitEnv
var pathMatch []string
var g gitService
var foundService bool
log.Print(r.Method, " ", r.URL)
// Look for a matching Git service
foundService := false
for _, g = range gitServices {
pathMatch = g.regexp.FindStringSubmatch(r.URL.Path)
if r.Method == g.method && pathMatch != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment