Skip to content

Commit e4dd21f

Browse files
JakobDevGiteaBot
authored andcommitted
Fix viewing wiki commit on empty repo (go-gitea#28040)
Fixes https://codeberg.org/forgejo/forgejo/issues/1758 For some weird reason we need to cast this nil.
1 parent d72e206 commit e4dd21f

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)