Skip to content

Commit

Permalink
Adding TODO.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Dec 16, 2024
1 parent 580ec7b commit a0bd0b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/typing/converters/string_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func GetStringConverter(kd typing.KindDetails) (StringConverter, error) {
return ArrayConverter{}, nil
}

// TODO: Return an error when all the types are implemented.
return nil, nil
}

Expand Down
5 changes: 3 additions & 2 deletions lib/typing/values/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import (
"strconv"
"strings"

"github.com/artie-labs/transfer/lib/typing/converters"

"github.com/artie-labs/transfer/lib/config/constants"
"github.com/artie-labs/transfer/lib/stringutil"
"github.com/artie-labs/transfer/lib/typing"
"github.com/artie-labs/transfer/lib/typing/converters"
"github.com/artie-labs/transfer/lib/typing/decimal"
)

Expand Down Expand Up @@ -45,6 +44,8 @@ func ToString(colVal any, colKind typing.KindDetails) (string, error) {
return sv.Convert(colVal)
}

// TODO: Move all of this into converter function

switch colKind.Kind {
case typing.String.Kind:
isArray := reflect.ValueOf(colVal).Kind() == reflect.Slice
Expand Down

0 comments on commit a0bd0b0

Please sign in to comment.