Fix panic when no user is signed in

See #188
v1.14-wow
Bwko 8 years ago
parent cf045b029c
commit fc3ed8a1de

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