diff options
Diffstat (limited to 'routers/repo')
-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": |