1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Merge pull request #254 from lunny/lunny/golint_modules_context

Golint fixed for modules/context
This commit is contained in:
Thomas Boerger
2016-11-25 10:11:52 +01:00
committed by GitHub
7 changed files with 20 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ import (
// Markdown render markdown document to HTML
// see https://github.com/gogits/go-gogs-client/wiki/Miscellaneous#render-an-arbitrary-markdown-document
func Markdown(ctx *context.APIContext, form api.MarkdownOption) {
if ctx.HasApiError() {
if ctx.HasAPIError() {
ctx.Error(422, "", ctx.GetErrMsg())
return
}