Przeglądaj źródła

simplify

pull/30707/head
silverwind 1 miesiąc temu
rodzic
commit
33d4ed973f
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1
    3
      routers/web/repo/editor.go

+ 1
- 3
routers/web/repo/editor.go Wyświetl plik

@@ -419,9 +419,7 @@ func DiffPreviewPost(ctx *context.Context) {
return
}

if diff.NumFiles == 0 {
ctx.Data["File"] = nil
} else {
if diff.NumFiles != 0 {
ctx.Data["File"] = diff.Files[0]
}


Ładowanie…
Anuluj
Zapisz