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(smtpTemplatesLoad())
exitIfError(oauthConfigure())
exitIfError(createMarkdownRenderer())
exitIfError(markdownRendererCreate())
exitIfError(setupSigintCleanup())
exitIfError(serveRoutes())

View File

@ -9,7 +9,7 @@ var policy *bluemonday.Policy
var renderer blackfriday.Renderer
var extensions int
func createMarkdownRenderer() error {
func markdownRendererCreate() error {
policy = bluemonday.UGCPolicy()
extensions = 0

View File

@ -120,7 +120,7 @@ func setupTestEnv() error {
return err
}
if err := createMarkdownRenderer(); err != nil {
if err := markdownRendererCreate(); err != nil {
return err
}
}