Skip to content

Commit 2753010

Browse files
authored
Merge pull request #496 from sanders41/config
Refactor save_project_manager
2 parents 4467ab1 + 57609e5 commit 2753010

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/config.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ impl Config {
139139
pub fn save_project_manager(value: ProjectManager) -> Result<()> {
140140
if let Ok(mut config) = Config::load_config() {
141141
config.project_manager = Some(value);
142-
if config.save().is_err() {
143-
raise_error()?;
144-
}
142+
config.save()?;
145143
} else {
146144
raise_error()?;
147145
}

0 commit comments

Comments
 (0)