diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/src/core.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ipc/src/core.rs b/ipc/src/core.rs index b4dd928a..6712921b 100644 --- a/ipc/src/core.rs +++ b/ipc/src/core.rs @@ -179,12 +179,10 @@ impl Config { let tmp = tempfile::Builder::new().prefix("sequoia").tempdir()?; c.home = tmp.into_path(); c.cleanup = true; - } else { - if home_not_set { - c.home = dirs::home_dir() - .ok_or_else(|| anyhow::anyhow!("Failed to get users home directory"))? - .join(".sequoia"); - } + } else if home_not_set { + c.home = dirs::home_dir() + .ok_or_else(|| anyhow::anyhow!("Failed to get users home directory"))? + .join(".sequoia"); } Ok(c) } |