Skip to content

Commit

Permalink
Remove duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Rodriguez committed Aug 18, 2015
1 parent 7bd8c96 commit 4c8fded
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@ func hasPrefix(prefix, s string) bool {
return strings.HasPrefix(s, prefix)
}

func parseBool(s string) (bool, error) {
return strconv.ParseBool(s)
}

// hasSuffix returns whether a given string is a suffix of another string
func hasSuffix(suffix, s string) bool {
return strings.HasSuffix(s, suffix)
Expand Down Expand Up @@ -351,7 +347,7 @@ func newTemplate(name string) *template.Template {
"keys": keys,
"last": arrayLast,
"replace": strings.Replace,
"parseBool": parseBool,
"parseBool": strconv.ParseBool,
"parseJson": unmarshalJson,
"queryEscape": url.QueryEscape,
"sha1": hashSha1,
Expand Down

0 comments on commit 4c8fded

Please sign in to comment.