mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 09:21:13 -05:00
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.
This commit is contained in:
parent
83c30634a4
commit
48b9d98593
1 changed files with 0 additions and 1 deletions
|
@ -16,7 +16,6 @@ import (
|
||||||
// SetEditorconfigIfExists set editor config as render variable
|
// SetEditorconfigIfExists set editor config as render variable
|
||||||
func SetEditorconfigIfExists(ctx *context.Context) {
|
func SetEditorconfigIfExists(ctx *context.Context) {
|
||||||
if ctx.Repo.Repository.IsEmpty {
|
if ctx.Repo.Repository.IsEmpty {
|
||||||
ctx.Data["Editorconfig"] = nil
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue