mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-04-22 07:46:42 +02:00
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> (cherry picked from commit 124a9957d086a054f45ca79ea5c5b6b6461a7f56)
This commit is contained in:
parent
1600b2c8ff
commit
0e9243bd8f
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue