Skip to content

Commit

Permalink
refactor: inline Cli parsing in init method for improved clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Kremilly committed Dec 12, 2024
1 parent c443ae1 commit 735c88b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dump_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,7 @@ impl DumpSync {
}

pub async fn init(&self) -> Result<(), Box<dyn Error>> {
let cli = Cli::parse();

match cli.command {
match Cli::parse().command {
Commands::Init => {
self.initialize().await?;
},
Expand Down

0 comments on commit 735c88b

Please sign in to comment.