Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <[email protected]>
  • Loading branch information
chawyehsu committed Mar 23, 2024
1 parent 8a0dde9 commit ec8b521
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ pub fn get_cache_dir() -> miette::Result<PathBuf> {

// Only use the xdg cache pixi directory when it exists
xdg_cache_pixi_dir
.map(|d| d.exists().then_some(d))
.flatten()
.and_then(|d| d.exists().then_some(d))
.ok_or_else(|| miette::miette!("could not determine xdg cache directory"))
})
.or_else(|_| {
Expand Down

0 comments on commit ec8b521

Please sign in to comment.