diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-25 14:51:01 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-25 14:53:59 +0800 |
commit | faabc76fd68b0ecccba1dc8dae47220b28cce05a (patch) | |
tree | d0a7f9b6417bc0bf596b3e0ed4f53e055d90a930 /routers | |
parent | 6a28909f40ad1ff20d325d9be4ada87e5b75ce53 (diff) | |
download | gitea-faabc76fd68b0ecccba1dc8dae47220b28cce05a.tar.gz gitea-faabc76fd68b0ecccba1dc8dae47220b28cce05a.zip |
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 } |