Rename func which is now a method.

This commit is contained in:
Anthony Stanton 2015-09-16 11:23:43 +02:00
parent 95b2a60b29
commit aed3f98703
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ func interpolationFuncCompact() ast.Function {
if !IsStringList(args[0].(string)) { if !IsStringList(args[0].(string)) {
return args[0].(string), nil return args[0].(string), nil
} }
return CompactStringList(StringList(args[0].(string))).String(), nil return StringList(args[0].(string)).Compact().String(), nil
}, },
} }
} }

View File

@ -25,7 +25,7 @@ type StringList string
const stringListDelim = `B780FFEC-B661-4EB8-9236-A01737AD98B6` const stringListDelim = `B780FFEC-B661-4EB8-9236-A01737AD98B6`
// Takes a Stringlist and returns one without empty strings in it // Takes a Stringlist and returns one without empty strings in it
func (sl StringList) CompactStringList() StringList { func (sl StringList) Compact() StringList {
parts := sl.Slice() parts := sl.Slice()
var newlist []string var newlist []string