From c158b86dc6ed351863df222c52ca981cae22fe99 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 14 May 2015 15:13:10 +0100 Subject: [PATCH] refactor: shorten a method name --- router/json.go | 2 +- weaver/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/router/json.go b/router/json.go index 966ef2fe..af48a012 100644 --- a/router/json.go +++ b/router/json.go @@ -6,7 +6,7 @@ import ( "time" ) -func (router *Router) GenerateStatusJSON(version, encryption string) ([]byte, error) { +func (router *Router) StatusJSON(version, encryption string) ([]byte, error) { return json.Marshal(struct { Version string Encryption string diff --git a/weaver/main.go b/weaver/main.go index 02b79538..4ee8ef26 100644 --- a/weaver/main.go +++ b/weaver/main.go @@ -179,7 +179,7 @@ func handleHTTP(router *weave.Router, httpAddr string) { }) muxRouter.Methods("GET").Path("/status-json").HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - json, _ := router.GenerateStatusJSON(version, encryption) + json, _ := router.StatusJSON(version, encryption) w.Write(json) })