mirror of
https://github.com/thegeeklab/drone-template-lib.git
synced 2024-11-16 01:40:42 +00:00
Fix build and lints
This commit is contained in:
parent
ecbb4a10a5
commit
29099fe4a4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user