Skip to content

Commit

Permalink
Removing unnecessary chdir
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedSoliman authored and tillrohrmann committed Apr 29, 2024
1 parent 15ef01c commit b3238c8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/types/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,7 @@ pub fn set_current_config(config: Configuration) {
// todo: potentially validate the config
CONFIGURATION.store(Arc::new(config));
#[cfg(not(any(test, feature = "test-util")))]
NODE_BASE_DIR.get_or_init(|| {
if let Err(e) = std::env::set_current_dir(&proposed_cwd) {
eprintln!("[WARN] Failed to set current working directory: {}", e);
};
proposed_cwd
});
NODE_BASE_DIR.get_or_init(|| proposed_cwd);
notify_config_update();
}

Expand Down

0 comments on commit b3238c8

Please sign in to comment.