Skip to content

Commit

Permalink
Reuse the wider scope variable "conn"
Browse files Browse the repository at this point in the history
  • Loading branch information
0uep committed Apr 27, 2022
1 parent 92ee084 commit 70fd68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tuple/sql/sqltest/sqltest.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestSQL(t *testing.T, name string, gen Database) {
tb.Cleanup(func() {
conn.Close()
if !recreate {
conn, err := sqltuple.OpenSQL(name, addr, "")
conn, err = sqltuple.OpenSQL(name, addr, "")
if err == nil {
_, err = conn.Exec(`DROP DATABASE ` + db)
conn.Close()
Expand Down

0 comments on commit 70fd68a

Please sign in to comment.