Fix build and lints

This commit is contained in:
Don 2020-09-18 11:00:31 -07:00
parent ecbb4a10a5
commit 29099fe4a4
1 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ package template
import ( import (
"fmt" "fmt"
"net/url" "net/url"
"math"
"regexp" "regexp"
"strings" "strings"
"time" "time"
@ -109,9 +110,9 @@ func truncate(s string, len int) string {
if len < 0 { if len < 0 {
len = -len len = -len
return string(runes[len:]) return string(runes[len:])
} else {
return string(runes[:len])
} }
return string(runes[:len])
} }
func urlencode(options *raymond.Options) string { func urlencode(options *raymond.Options) string {