Skip to content

Commit

Permalink
drop juju/errors dep (#1)
Browse files Browse the repository at this point in the history
* drop juju/errors dep

* update format
  • Loading branch information
july2993 authored and zanmato1984 committed Nov 6, 2018
1 parent 6c32f7b commit 3e9a6b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/column/decimal.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package column

import (
"errors"
"fmt"
"reflect"
"strconv"
"strings"

"github.com/juju/errors"
"github.com/zanmato1984/clickhouse/lib/binary"
)

Expand All @@ -26,7 +26,7 @@ func (d *Decimal) Write(encoder *binary.Encoder, v interface{}) error {
case []byte:
_, err := encoder.Write(value)
if err != nil {
return errors.Trace(err)
return err
}
return nil
default:
Expand All @@ -45,11 +45,11 @@ func parseDecimal(name, chType string) (*Decimal, error) {
splits := strings.Split(s, ",")
precision, err := strconv.Atoi(splits[0])
if err != nil {
return nil, errors.Trace(err)
return nil, err
}
scale, err := strconv.Atoi(splits[1])
if err != nil {
return nil, errors.Trace(err)
return nil, err
}
return &Decimal{
base: base{
Expand Down

0 comments on commit 3e9a6b9

Please sign in to comment.