removing go-sdk stuff
This commit is contained in:
parent
0576aba75e
commit
07a9cdf513
2 changed files with 6 additions and 10 deletions
6
parse.go
6
parse.go
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue