Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
removed redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi3700 committed Feb 6, 2024
1 parent 9b2539e commit 96e408b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pulsar/src/commands/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ pub(crate) async fn config(
if let Some(fd) = farm_dir {
let farm_dir = PathBuf::from_str(&fd).expect("Invalid farm directory");
create_or_move_data(&config.farmer.farm_directory, &farm_dir)?;
if farm_dir.exists() {
config.farmer.farm_directory = farm_dir;
}
config.farmer.farm_directory = farm_dir;
}

// Save the updated configuration back to the file
Expand Down

0 comments on commit 96e408b

Please sign in to comment.