From 8bd8edc90d43b91c491ca9675e593d8a3caa915c Mon Sep 17 00:00:00 2001 From: hellerve Date: Tue, 13 Dec 2016 11:05:44 +0100 Subject: [PATCH] go fmt --- endpoints/endpoint.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/endpoints/endpoint.go b/endpoints/endpoint.go index f760e7d..e364239 100644 --- a/endpoints/endpoint.go +++ b/endpoints/endpoint.go @@ -52,10 +52,10 @@ func Endpoint(wrapped func(httprouter.Params) (bird.Parsed, bool)) httprouter.Ha res := make(map[string]interface{}) ret, from_cache := wrapped(ps) - if ret == nil { - w.WriteHeader(http.StatusTooManyRequests) - return - } + if ret == nil { + w.WriteHeader(http.StatusTooManyRequests) + return + } res["api"] = GetApiInfo(from_cache) for k, v := range ret {