mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 19:39:49 +02:00
Merge pull request #254 from lunny/lunny/golint_modules_context
Golint fixed for modules/context
This commit is contained in:
commit
32f8a38f6c
7 files changed
+20
-3
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user