simplifyed code for minute buckets

This commit is contained in:
Radu Ioan Fericean
2013-08-22 14:36:27 +03:00
parent 99992ab38a
commit c2913b6fe9

View File

@@ -580,8 +580,7 @@ func (mb *MinuteBucket) Store() (result string, err error) {
}
func (mb *MinuteBucket) Restore(input string) error {
input = strings.TrimSpace(input)
elements := strings.Split(input, ";")
elements := strings.Split(strings.TrimSpace(input), ";")
if len(elements) > 0 && len(elements) != 5 {
return notEnoughElements("MinuteBucket", input)
}