Skip to content

Commit

Permalink
Remove unnecessary error (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
afujiwara-roblox authored Mar 5, 2024
1 parent cfb0026 commit c57e712
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ fn get_artiaa_path_based_on_os() -> ForemanResult<PathBuf> {

#[cfg(all(not(target_os = "macos"), target_family = "unix"))]
fn get_artiaa_path_based_on_os() -> ForemanResult<PathBuf> {
let xdg_data_home = env::var("XDG_DATA_HOME").map_err(|_| ForemanError::EnvVarNotFound {
env_var: "$XDG_DATA_HOME".to_string(),
})?;

if let Ok(xdg_data_home) = env::var("XDG_DATA_HOME") {
return Ok(PathBuf::from(format!(
"{}/artiaa-tokens.json",
Expand Down

0 comments on commit c57e712

Please sign in to comment.