qb: removed error from builder ToCql function

Builder is not in a position to validate the statement and the effort is
duplicated when the query is build. The checked errors are simple and
do not occur most of the time.
This commit is contained in:
Michał Matczuk
2017-07-28 09:43:58 +02:00
parent 2afe71e2b9
commit eb033c4922
8 changed files with 8 additions and 67 deletions

View File

@@ -53,10 +53,7 @@ func TestInsertBuilder(t *testing.T) {
}
for _, test := range table {
stmt, names, err := test.B.ToCql()
if err != nil {
t.Error("unexpected error", err)
}
stmt, names := test.B.ToCql()
if diff := cmp.Diff(test.S, stmt); diff != "" {
t.Error(diff)
}