Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Removes a code path that is never touched
Browse files Browse the repository at this point in the history
  • Loading branch information
jcooklin committed Jul 15, 2016
1 parent 78ea8aa commit 2039b0f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions mgmt/rest/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,6 @@ func (s *Server) getMetricsFromTree(w http.ResponseWriter, r *http.Request, para
return
}

// If no version was given, get all that fall at this namespace.
if v == "" {
mts, err := s.mm.GetMetricVersions(core.NewNamespace(ns...))
if err != nil {
respond(404, rbody.FromError(err), w)
return
}
respondWithMetrics(r.Host, mts, w)
return
}

// if an explicit version is given, get that single one.
ver, err = strconv.Atoi(v)
if err != nil {
Expand Down

0 comments on commit 2039b0f

Please sign in to comment.