diff options
author | Thomas Boerger <thomas@webhippie.de> | 2016-11-25 10:11:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-25 10:11:52 +0100 |
commit | 32f8a38f6c14936d2b15c89fd4cbbf535aebc626 (patch) | |
tree | ef0083faaf02a2fe706a0d7e81dfca99fbed1275 /routers | |
parent | 3e6f36347196b7d8a16b096806a7140950545d0c (diff) | |
parent | faabc76fd68b0ecccba1dc8dae47220b28cce05a (diff) | |
download | gitea-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.go | 2 |
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 } |