removing go-sdk stuff

This commit is contained in:
Will Charczuk 2019-04-24 12:58:05 -07:00
parent 0576aba75e
commit 07a9cdf513
2 changed files with 6 additions and 10 deletions

View file

@ -4,8 +4,6 @@ import (
"strconv"
"strings"
"time"
"github.com/blend/go-sdk/exception"
)
// ParseFloats parses a list of floats.
@ -20,7 +18,7 @@ func ParseFloats(values ...string) ([]float64, error) {
continue
}
if parsedValue, err = strconv.ParseFloat(cleaned, 64); err != nil {
return nil, exception.New(err)
return nil, err
}
output = append(output, parsedValue)
}
@ -34,7 +32,7 @@ func ParseTimes(layout string, values ...string) ([]time.Time, error) {
var err error
for _, value := range values {
if parsedValue, err = time.Parse(layout, value); err != nil {
return nil, exception.New(err)
return nil, err
}
output = append(output, parsedValue)
}