aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-11-25 10:11:52 +0100
committerGitHub <noreply@github.com>2016-11-25 10:11:52 +0100
commit32f8a38f6c14936d2b15c89fd4cbbf535aebc626 (patch)
treeef0083faaf02a2fe706a0d7e81dfca99fbed1275 /routers
parent3e6f36347196b7d8a16b096806a7140950545d0c (diff)
parentfaabc76fd68b0ecccba1dc8dae47220b28cce05a (diff)
downloadgitea-32f8a38f6c14936d2b15c89fd4cbbf535aebc626.tar.gz
gitea-32f8a38f6c14936d2b15c89fd4cbbf535aebc626.zip
Merge pull request #254 from lunny/lunny/golint_modules_context
Golint fixed for modules/context
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/misc/markdown.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/misc/markdown.go b/routers/api/v1/misc/markdown.go
index 23b5b269aa..1a0c003e7f 100644
--- a/routers/api/v1/misc/markdown.go
+++ b/routers/api/v1/misc/markdown.go
@@ -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
}