Backport #28040 by @JakobDev Fixes https://codeberg.org/forgejo/forgejo/issues/1758 For some weird reason we need to cast this nil. Co-authored-by: JakobDev <jakobdev@gmx.de>tags/v1.21.0
@@ -16,7 +16,6 @@ import ( | |||
// SetEditorconfigIfExists set editor config as render variable | |||
func SetEditorconfigIfExists(ctx *context.Context) { | |||
if ctx.Repo.Repository.IsEmpty { | |||
ctx.Data["Editorconfig"] = nil | |||
return | |||
} | |||