Browse Source

Fix panic when no user is signed in

See #188
tags/v1.0.2
Bwko 9 years ago
parent
commit
fc3ed8a1de
  1. 4
      routers/repo/middlewares.go

4
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…
Cancel
Save