From 6510e5775896343f0a69c47ad31c439c7310ff34 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 30 Dec 2016 15:26:05 +0800 Subject: fix gofmt error Signed-off-by: Bo-Yi Wu --- routers/repo/http.go | 2 +- routers/repo/issue.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'routers/repo') diff --git a/routers/repo/http.go b/routers/repo/http.go index 6b4dec8149..695e758cdb 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -94,7 +94,7 @@ func HTTP(ctx *context.Context) { ctx.HandleText(401, "reverse proxy login error, got error while running GetUserByName") return } - }else{ + } else { authHead := ctx.Req.Header.Get("Authorization") if len(authHead) == 0 { ctx.Resp.Header().Set("WWW-Authenticate", "Basic realm=\".\"") diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 049eac06c3..edc6219d33 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -132,10 +132,10 @@ func Issues(ctx *context.Context) { } var ( - assigneeID = ctx.QueryInt64("assignee") - posterID int64 - mentionedID int64 - forceEmpty bool + assigneeID = ctx.QueryInt64("assignee") + posterID int64 + mentionedID int64 + forceEmpty bool ) switch viewType { case "assigned": -- cgit v1.2.3