From 94f0f68604d67b6607322ff09bd933e56adebd63 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Tue, 24 Jul 2018 12:13:23 +0530 Subject: [PATCH] api: rename createMarkdownRenderer --- api/main.go | 2 +- api/markdown.go | 2 +- api/testing.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/main.go b/api/main.go index d4177b1..8030752 100644 --- a/api/main.go +++ b/api/main.go @@ -8,7 +8,7 @@ func main() { exitIfError(smtpConfigure()) exitIfError(smtpTemplatesLoad()) exitIfError(oauthConfigure()) - exitIfError(createMarkdownRenderer()) + exitIfError(markdownRendererCreate()) exitIfError(setupSigintCleanup()) exitIfError(serveRoutes()) diff --git a/api/markdown.go b/api/markdown.go index 5c96693..9f3db05 100644 --- a/api/markdown.go +++ b/api/markdown.go @@ -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 diff --git a/api/testing.go b/api/testing.go index 13af060..5ad9d2c 100644 --- a/api/testing.go +++ b/api/testing.go @@ -120,7 +120,7 @@ func setupTestEnv() error { return err } - if err := createMarkdownRenderer(); err != nil { + if err := markdownRendererCreate(); err != nil { return err } }