Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 01:44:24 +01:00

Remove unnecessary URLPrefix assignment

This commit is contained in:
Nirmal Kumar R 2024-11-09 15:33:36 +05:30
parent a057b7f582
commit f42df16c9a

View file

@ -55,7 +55,6 @@ func (re *Renderer) RenderMarkup(ctx *context.Base, repo *context.Repository) {
case "file":
// File as document based on file extension
markupType = ""
re.URLPrefix = repo.RepoLink
relativePath = re.FilePath
default:
ctx.Error(http.StatusUnprocessableEntity, fmt.Sprintf("Unknown mode: %s", re.Mode))