diff --git a/internal/database/dbutil/deserialize.go b/internal/database/dbutil/deserialize.go index 9b49c31dd..b819fe262 100644 --- a/internal/database/dbutil/deserialize.go +++ b/internal/database/dbutil/deserialize.go @@ -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 } }