Преглед изворни кода

Fix panic when no user is signed in

See #188
tags/v1.0.0
Bwko пре 7 година
родитељ
комит
fc3ed8a1de
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4
    0
      routers/repo/middlewares.go

+ 4
- 0
routers/repo/middlewares.go Прегледај датотеку

@@ -23,6 +23,10 @@ func SetEditorconfigIfExists(ctx *context.Context) {
}

func SetDiffViewStyle(ctx *context.Context) {
if !ctx.IsSigned {
return
}

var (
userStyle = ctx.User.DiffViewStyle
queryStyle = ctx.Query("style")

Loading…
Откажи
Сачувај