summaryrefslogtreecommitdiffstats
path: root/modules/template/highlight
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-25 14:23:48 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2016-11-25 14:23:48 +0800
commit229ec927b953cf80b5eecb03d412a9634b83a25a (patch)
treecddd09bed1ba2d98a010173d102dde56e94d0801 /modules/template/highlight
parent6a28909f40ad1ff20d325d9be4ada87e5b75ce53 (diff)
downloadgitea-229ec927b953cf80b5eecb03d412a9634b83a25a.tar.gz
gitea-229ec927b953cf80b5eecb03d412a9634b83a25a.zip
Golint fixed for modules/template
Diffstat (limited to 'modules/template/highlight')
-rw-r--r--modules/template/highlight/highlight.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/template/highlight/highlight.go b/modules/template/highlight/highlight.go
index 7dcb672da6..39b5d6d153 100644
--- a/modules/template/highlight/highlight.go
+++ b/modules/template/highlight/highlight.go
@@ -64,6 +64,7 @@ var (
highlightMapping = map[string]string{}
)
+// NewContext loads highlight map
func NewContext() {
keys := setting.Cfg.Section("highlight.mapping").Keys()
for i := range keys {