Skip to content

Commit

Permalink
fix: remove extraneous call to driver.init() (#3093)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludydoo authored Apr 27, 2022
1 parent f2bef45 commit 1590542
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/cli/handler_janitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1590542

Please sign in to comment.