diff --git a/cli/commands/drop.go b/cli/commands/drop.go index a79acc79d..5f75e1726 100644 --- a/cli/commands/drop.go +++ b/cli/commands/drop.go @@ -95,7 +95,6 @@ func DropDB() error { defer dbMutex.Unlock() db, err := sql.Open("postgres", CONFIG.Database.WithDb()) - if err != nil { return err } @@ -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) } @@ -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) }