Skip to content

Commit 48b9d98

Browse files
authored
Fix viewing wiki commit on empty repo (#28040)
Fixes https://codeberg.org/forgejo/forgejo/issues/1758 For some weird reason we need to cast this nil.
1 parent 83c3063 commit 48b9d98

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)