diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2016-12-30 15:26:05 +0800 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2016-12-30 20:41:10 +0100 |
commit | 6510e5775896343f0a69c47ad31c439c7310ff34 (patch) | |
tree | 875044ba5fcd58a4cc7e7d1b1215f7217963a30d /routers | |
parent | d0490c187cf6720ed4d0e8ce14c8706e61adaf1f (diff) | |
download | gitea-6510e5775896343f0a69c47ad31c439c7310ff34.tar.gz gitea-6510e5775896343f0a69c47ad31c439c7310ff34.zip |
fix gofmt error
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/http.go | 2 | ||||
-rw-r--r-- | routers/repo/issue.go | 8 |
2 files changed, 5 insertions, 5 deletions
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": |