Skip to content

Commit

Permalink
oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Nowak-Liebiediew committed Jul 6, 2023
1 parent 8f77189 commit 2b47c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfx-core/src/config/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn get_cache_root(ensure_dir_exists: bool) -> Result<PathBuf, CacheError> {
pub fn get_bin_cache_root(ensure_dir_exists: bool) -> Result<PathBuf, CacheError> {
let p = get_cache_root(ensure_dir_exists)?.join("versions");

if !p.exists() {
if !p.exists() && ensure_dir_exists {
crate::fs::create_dir_all(&p).map_err(CacheError::CreateCacheDirectoryFailed)?;
} else if !p.is_dir() {
return Err(CacheError::FindCacheDirectoryFailed(p));
Expand Down

0 comments on commit 2b47c20

Please sign in to comment.