Skip to content

Commit

Permalink
refactor(dbutil/deserialize): modify cassandraDeserializer singleCase…
Browse files Browse the repository at this point in the history
…Switch
  • Loading branch information
lianxmfor committed Feb 24, 2022
1 parent 2fea40e commit 3a569f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/database/dbutil/deserialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ func rdbDeserializer(i interface{}, valueType types.ValueType) (interface{}, err
}

func cassandraDeserializer(i interface{}, valueType types.ValueType) (interface{}, error) {
switch i.(type) {
case string:
if i == "" {
if v, ok := i.(string); ok {
if v == "" {
return nil, nil
}
}
Expand Down

0 comments on commit 3a569f1

Please sign in to comment.