forked from NYANDEV/forgejo
Golint fixed for modules/context
This commit is contained in:
parent
6a28909f40
commit
faabc76fd6
7 changed files with 20 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue