remove redundant func()

This commit is contained in:
Daniel Smith
2015-02-17 15:58:18 -08:00
parent dba24d1325
commit ca5a73ac6b
4 changed files with 4 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ func (h *WatchHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
var apiResource string
var httpCode int
reqStart := time.Now()
defer func() { monitor("watch", verb, apiResource, httpCode, reqStart) }()
defer monitor("watch", verb, apiResource, httpCode, reqStart)
if req.Method != "GET" {
notFound(w, req)