fix gofmt error

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-12-30 15:26:05 +08:00 committed by Kim "BKC" Carlbäcker
parent d0490c187c
commit 6510e57758
7 changed files with 27 additions and 28 deletions

View file

@ -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=\".\"")

View file

@ -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":