Skip to content

Commit c57e712

Browse files
Remove unnecessary error (#93)
1 parent cfb0026 commit c57e712

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/paths.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ fn get_artiaa_path_based_on_os() -> ForemanResult<PathBuf> {
124124

125125
#[cfg(all(not(target_os = "macos"), target_family = "unix"))]
126126
fn get_artiaa_path_based_on_os() -> ForemanResult<PathBuf> {
127-
let xdg_data_home = env::var("XDG_DATA_HOME").map_err(|_| ForemanError::EnvVarNotFound {
128-
env_var: "$XDG_DATA_HOME".to_string(),
129-
})?;
130-
131127
if let Ok(xdg_data_home) = env::var("XDG_DATA_HOME") {
132128
return Ok(PathBuf::from(format!(
133129
"{}/artiaa-tokens.json",

0 commit comments

Comments
 (0)