diff --git a/cmd/coordinator/internal/dashboard/handler.go b/cmd/coordinator/internal/dashboard/handler.go index 7dacea3f9b..1564d924ad 100644 --- a/cmd/coordinator/internal/dashboard/handler.go +++ b/cmd/coordinator/internal/dashboard/handler.go @@ -63,7 +63,7 @@ type Handler struct { } func (d *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request) { - showLUCI, _ := strconv.ParseBool(req.URL.Query().Get("showluci")) + var showLUCI = true if legacyOnly, _ := strconv.ParseBool(req.URL.Query().Get("legacyonly")); legacyOnly { showLUCI = false } diff --git a/cmd/coordinator/internal/legacydash/ui.go b/cmd/coordinator/internal/legacydash/ui.go index 1c25b86373..6d88c58c44 100644 --- a/cmd/coordinator/internal/legacydash/ui.go +++ b/cmd/coordinator/internal/legacydash/ui.go @@ -102,7 +102,7 @@ func viewForRequest(r *http.Request) (dashboardView, error) { case "json": return jsonView{}, nil case "": - showLUCI, _ := strconv.ParseBool(r.URL.Query().Get("showluci")) + var showLUCI = true if legacyOnly, _ := strconv.ParseBool(r.URL.Query().Get("legacyonly")); legacyOnly { showLUCI = false }