api: rename createMarkdownRenderer
This commit is contained in:
parent
1f45c04aca
commit
94f0f68604
@ -8,7 +8,7 @@ func main() {
|
|||||||
exitIfError(smtpConfigure())
|
exitIfError(smtpConfigure())
|
||||||
exitIfError(smtpTemplatesLoad())
|
exitIfError(smtpTemplatesLoad())
|
||||||
exitIfError(oauthConfigure())
|
exitIfError(oauthConfigure())
|
||||||
exitIfError(createMarkdownRenderer())
|
exitIfError(markdownRendererCreate())
|
||||||
exitIfError(setupSigintCleanup())
|
exitIfError(setupSigintCleanup())
|
||||||
|
|
||||||
exitIfError(serveRoutes())
|
exitIfError(serveRoutes())
|
||||||
|
@ -9,7 +9,7 @@ var policy *bluemonday.Policy
|
|||||||
var renderer blackfriday.Renderer
|
var renderer blackfriday.Renderer
|
||||||
var extensions int
|
var extensions int
|
||||||
|
|
||||||
func createMarkdownRenderer() error {
|
func markdownRendererCreate() error {
|
||||||
policy = bluemonday.UGCPolicy()
|
policy = bluemonday.UGCPolicy()
|
||||||
|
|
||||||
extensions = 0
|
extensions = 0
|
||||||
|
@ -120,7 +120,7 @@ func setupTestEnv() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := createMarkdownRenderer(); err != nil {
|
if err := markdownRendererCreate(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user