Merge pull request #254 from lunny/lunny/golint_modules_context

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

No files matched your search

+1 -1
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
}