From 29099fe4a4491871e7c1bad80ff55564721ca8e3 Mon Sep 17 00:00:00 2001 From: Don Date: Fri, 18 Sep 2020 11:00:31 -0700 Subject: [PATCH] Fix build and lints --- template/helpers.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/template/helpers.go b/template/helpers.go index bd59acd..b4085b4 100644 --- a/template/helpers.go +++ b/template/helpers.go @@ -17,6 +17,7 @@ package template import ( "fmt" "net/url" + "math" "regexp" "strings" "time" @@ -109,9 +110,9 @@ func truncate(s string, len int) string { if len < 0 { len = -len return string(runes[len:]) - } else { - return string(runes[:len]) } + + return string(runes[:len]) } func urlencode(options *raymond.Options) string {