Skip to content

Commit

Permalink
remove extra error check
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislav promzelev committed Sep 15, 2023
1 parent 75abed2 commit 541767e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 24 deletions.
3 changes: 0 additions & 3 deletions examples/clickhouse_api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ func Auth() error {
if err != nil {
return err
}
if err != nil {
return err
}
v, err := conn.ServerVersion()
fmt.Println(v)
if err != nil {
Expand Down
3 changes: 0 additions & 3 deletions examples/std/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ func BatchInsert() error {
return err
}
conn.SetMaxIdleConns(5)
if err != nil {
return err
}
if _, err := conn.Exec(`DROP TABLE IF EXISTS example`); err != nil {
return err
}
Expand Down
6 changes: 0 additions & 6 deletions examples/std/compression.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ func CompressOpenDB() error {
if err != nil {
return err
}
if err != nil {
return err
}
for i := 0; i < 1000; i++ {
if _, err := batch.Exec([]string{strconv.Itoa(i), strconv.Itoa(i + 1), strconv.Itoa(i + 2), strconv.Itoa(i + 3)}); err != nil {
return err
Expand Down Expand Up @@ -101,9 +98,6 @@ func CompressOpen() error {
if err != nil {
return err
}
if err != nil {
return err
}
for i := 0; i < 1000; i++ {
if _, err := batch.Exec([]string{strconv.Itoa(i), strconv.Itoa(i + 1), strconv.Itoa(i + 2), strconv.Itoa(i + 3)}); err != nil {
return err
Expand Down
3 changes: 0 additions & 3 deletions examples/std/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ func MapInsertRead() error {
if err != nil {
return err
}
if err != nil {
return err
}
const ddl = `
CREATE TABLE example (
Col1 Map(String, UInt64)
Expand Down
3 changes: 0 additions & 3 deletions examples/std/query_row.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ func QueryRow() error {
return err
}

if err != nil {
return err
}
scope, err := conn.Begin()
if err != nil {
return err
Expand Down
6 changes: 0 additions & 6 deletions examples/std/query_rows.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ func QueryRows() error {
if err != nil {
return err
}
if err != nil {
return err
}
defer func() {
conn.Exec("DROP TABLE example")
}()
Expand All @@ -52,9 +49,6 @@ func QueryRows() error {
return err
}

if err != nil {
return err
}
scope, err := conn.Begin()
if err != nil {
return err
Expand Down

0 comments on commit 541767e

Please sign in to comment.