Sfoglia il codice sorgente

simplify

pull/30707/head
silverwind 3 settimane fa
parent
commit
33d4ed973f
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1
    3
      routers/web/repo/editor.go

+ 1
- 3
routers/web/repo/editor.go Vedi File

@@ -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]
}


Loading…
Annulla
Salva