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

Remove unnecessary URLPrefix assignment

This commit is contained in:
Nirmal Kumar R 2024-11-09 15:33:36 +05:30
parent 3086165b7f
commit 803eb8c246

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))