Skip to content

Commit 124a995

Browse files
GiteaBotJakobDev
andauthored
Fix viewing wiki commit on empty repo (#28040) (#28044)
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 <[email protected]>
1 parent d72e206 commit 124a995

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

routers/web/repo/middlewares.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
// SetEditorconfigIfExists set editor config as render variable
1717
func SetEditorconfigIfExists(ctx *context.Context) {
1818
if ctx.Repo.Repository.IsEmpty {
19-
ctx.Data["Editorconfig"] = nil
2019
return
2120
}
2221

0 commit comments

Comments
 (0)