Skip to content

Commit

Permalink
ran gofumpt -w .
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOduneye committed Feb 2, 2024
1 parent b9d5a47 commit a685a5a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cli/commands/drop.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ func DropDB() error {
defer dbMutex.Unlock()

db, err := sql.Open("postgres", CONFIG.Database.WithDb())

if err != nil {
return err
}
Expand All @@ -105,7 +104,6 @@ func DropDB() error {
var tableCount int

err = db.QueryRow("SELECT COUNT(*) FROM pg_tables WHERE schemaname = 'public'").Scan(&tableCount)

if err != nil {
return fmt.Errorf("error checking tables: %w", err)
}
Expand All @@ -118,7 +116,6 @@ func DropDB() error {
fmt.Println("Generating DROP TABLE statements...")

rows, err := db.Query("SELECT tablename FROM pg_tables WHERE schemaname = 'public'")

if err != nil {
return fmt.Errorf("error generating DROP TABLE statements: %w", err)
}
Expand Down

0 comments on commit a685a5a

Please sign in to comment.