fix: remove extraneous call to driver.init()
@@ -118,11 +118,6 @@ func purge(cmd *cobra.Command, args []string) error {
"When using flag -c, the dsn property should be set.")
}
- if err := d.Init(cmd.Context()); err != nil {
- return fmt.Errorf("%s\n%s\n", cmd.UsageString(),
- "Janitor can only be executed against a SQL-compatible driver but DSN is not a SQL source.")
- }
-
p := d.Persister()
limit := flagx.MustGetInt(cmd, Limit)
