Skip to content

Commit

Permalink
refactor: simplify error handling in main function initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Kremilly committed Dec 13, 2024
1 parent 4c63642 commit d08daf7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ use crate::dump_sync::DumpSync;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
if let Err(e) = DumpSync.init().await {
eprintln!("Error initializing app: {}", e);
return Err(e);
}

DumpSync.init().await?;
Ok(())
}

0 comments on commit d08daf7

Please sign in to comment.