api: rename createMarkdownRenderer

This commit is contained in:
Adhityaa Chandrasekar 2018-07-24 12:13:23 +05:30
parent 1f45c04aca
commit 94f0f68604
3 changed files with 3 additions and 3 deletions

View File

@ -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())

View File

@ -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

View File

@ -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
} }
} }